Back to Basics: Classic 9STL
Back to Basics: Classic STL Bob Steagall CppCon 2021CppCon 2021 – Back to Basics: Classic STL Copyright © 2021 Bob Steagall Overview • Rationale • History and design overview • Iterators • Containers Containers • Algorithms 2CppCon 2021 – Back to Basics: Classic STL Copyright © 2021 Bob Steagall Goals and References • Goals • Understand overall STL design • Understand iterators • Recommended references Addison-Wesley 2014 • cppreference.com 3CppCon 2021 – Back to Basics: Classic STL Copyright © 2021 Bob Steagall What is "Classic STL?" 4 Language Support Concepts Diagnostics General Utilities0 码力 | 75 页 | 603.36 KB | 5 月前3Creating a Sender/Receiver HTTP Server
com © 2024 Bloomberg Finance L.P. All rights reserved. • Create a basic HTTP server. • Allow a single-threaded server handling multiple clients. • Use the sender/receiver asynchronous framework.0 码力 | 8 页 | 2.19 MB | 5 月前3Design Patterns: Facts and Misconceptions
each other? Design decisions that are hard to change Architectural patterns Examples: Client-Server Architecture Micro-Services MVC, … Design How are small entities depending on each other? Idiom (Bridge Design Pattern) Factory Function enable_if3233 ? ? ?34 ?The Classic Factory Method Design Pattern 35The Classic Factory Method Design Pattern 36 “Define an interface for creating an object subclasses.” (The Gang of Four, Design Patterns - Elements of Reusable Object- Oriented Software)The Classic Factory Method Design Pattern 37 virtual factoryMethod() = 0 Product Creator ConcreteCreator0 码力 | 88 页 | 17.31 MB | 5 月前3C++20 STL Features: 1 Year of Development on GitHub
auto& e : s) { cout << e << " "; } cout << endl; } int main() { static constexpr int classic[]{1, 2, 3}; print(classic); print(array{4, 5, 6}); print(vector{7, 8, 9}); } 23Contiguous > Random-Access • microsoft.github.io/STL/ • C++20: wg21.link/n4861 • Questions • GitHub Discussions tab • Discord server (see README) 37Bonus Slides 38Compile-Time/Run-Time Hybrid template_NODISCARD 0 码力 | 45 页 | 989.72 KB | 5 月前3C++20 STL Features: 1 Year of Development on GitHub
cout << e << " "; } cout << endl; } int main() { static constexpr int classic[]{1, 2, 3}; print(classic); print(array{4, 5, 6}); print(vector{7, 8, 9}); }24 Contiguous > Random-Access microsoft.github.io/STL/ • C++20: wg21.link/n4861 • Questions • GitHub Discussions tab • Discord server (see README)38 Bonus Slides39 Compile-Time/Run-Time Hybrid template_NODISCARD 0 码力 | 45 页 | 702.09 KB | 5 月前3Secure access to EC2 (for developers)
weak-password attacks – bots and scanners – DDoS attacks A regular virtual machineIt's a VM. Classic EC2 instance in de‐ fault setting. Resources: EC2SecurityGroup: Type: AWS:: EC2:: SecurityGroup de‐ velopers just produce. In 4 words - "it is not good" So that's the story about secured SSH server.Simple fix Resources: EC2SecurityGroup: Type: AWS:: EC2:: SecurityGroup Properties: support of tools like Ansible – easy to start with – bastion host is a host, we need to pay for it – server as any other need to be maintained – bastion host become single point of failure solution two -0 码力 | 10 页 | 3.11 MB | 5 月前3julia 1.10.10
for anonymous functions is passing them to functions which take other functions as ar- guments. A classic example is map, which applies a function to each value of an array and returns a new array containing The ability to write code that can operate on different types is called polymorphism. All code in classic dynamically typed languages is polymorphic: only by explicitly checking types, or when objects fail reason to define more. A primitive type is a concrete type whose data consists of plain old bits. Classic examples of primitive types are integers and floating-point values. Unlike most languages, Julia0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
for anonymous functions is passing them to functions which take other functions as ar- guments. A classic example is map, which applies a function to each value of an array and returns a new array containing The ability to write code that can operate on different types is called polymorphism. All code in classic dynamically typed languages is polymorphic: only by explicitly checking types, or when objects fail reason to define more. A primitive type is a concrete type whose data consists of plain old bits. Classic examples of primitive types are integers and floating-point values. Unlike most languages, Julia0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
for anonymous functions is passing them to functions which take other functions as ar- guments. A classic example is map, which applies a function to each value of an array and returns a new array containing The ability to write code that can operate on different types is called polymorphism. All code in classic dynamically typed languages is polymorphic: only by explicitly checking types, or when objects fail reason to define more. A primitive type is a concrete type whose data consists of plain old bits. Classic examples of primitive types are integers and floating-point values. Unlike most languages, Julia0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
for anonymous functions is passing them to functions which take other functions as ar- guments. A classic example is map, which applies a function to each value of an array and returns a new array containing The ability to write code that can operate on different types is called polymorphism. All code in classic dynamically typed languages is polymorphic: only by explicitly checking types, or when objects fail reason to define more. A primitive type is a concrete type whose data consists of plain old bits. Classic examples of primitive types are integers and floating-point values. Unlike most languages, Julia0 码力 | 2007 页 | 6.73 MB | 3 月前3
共 161 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17