Back To Basics: The Rule of FiveAgenda ● Background ● Core Guidelines ● What is the Rule of Five ● Compiler provided functions ● What is the Rule of Zero 3Copyright © 2023 Andre Kostur C++ is a net> C++ Core Guidelines 6Copyright © 2023 Andre Kostur Guideline C.21 is “The Rule of Five” 7Copyright © 2023 Andre Kostur Simple String 8Copyright © 2023 Andre nullptr; return *this; } // … char * data_; }; 19Copyright © 2023 Andre Kostur The Rule of Five C.21: “If you define or =delete any copy, move, or destructor function, define or =delete 0 码力 | 42 页 | 623.10 KB | 6 月前3
cppcon 2021 safety guidelines for C parallel and concurrencyTechnical Specification ● MISRA C++ and AUTOSAR ● Chair of Standards Council Canada TC22/SC32 Electrical and electronic components (SOTIF) ● Chair of UL4600 Object Tracking ● RISC-V Datacenter/Cloud Computing 0 75 33 69% These are the 2 most important guidelines today C++ CG: Meta + automated checkable rule • Follow Bjarne’s talk on type+resource Safety on C++ CG • Aim for bug free code with high performance google.com/document/d/14E0BYqsH_d7fMKvXvaZWoNWtIC65c YBw0aZp4dlev0Q/edit#heading=h.yt0hxah53p9e Rule decidability • Human review • Generally simple rules • Code snippets • Basic syntax matches intention0 码力 | 52 页 | 3.14 MB | 6 月前3
Computer Programming with the Nim Programming Language
so-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 865 页 | 7.45 MB | 1 年前3
Computer Programming with the Nim Programming Language
so-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 784 页 | 2.13 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical con tacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 512 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 508 页 | 3.50 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical con tacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 512 页 | 3.53 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 508 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 508 页 | 3.50 MB | 1 年前3
Computer Programming with the Nim Programming Languageso-called embedded devices. These are typically tiny units encased in black plastic with some electrical contacts. The devices can contain all necessary elements, i.e., the CPU, some RAM, and persistent charge, which is always a multiple of the elementary charge unit of a single electron. Whenever electrical current flows through a conductor such as a wire, an ionized gas, or an electrolyte like saltwater paper and the numbers were encoded through holes in the cards. The holes could be recognized by electrical contacts to feed the numbers into the CPU. Since plain numbers do not align well with human cognition0 码力 | 508 页 | 3.52 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













