Forwarding References
CppCon 2023 | Forwarding References Workshopy Style 2• Provide rationale • Facilitate discussion – force the audience to think – not just a lecture • Describe – pitfalls – corner cases • Provide com/FWDREF CppCon 2023 | Forwarding References Workshopy Style 2CppCon 2023 | Forwarding References Thank You Scott Meyers! 3CppCon 2023 | Forwarding References Value categories 4Determines the identity identity of an object, bit-field, or function CppCon 2023 | Forwarding References Value categories “GENERALIZED” LVALUES 4Determines the identity of an object, bit-field, or function Computes the0 码力 | 107 页 | 3.72 MB | 5 月前3CppCon 2021: Persistent Data Structures
ReferencesIntroduction Persistent Hash Map Persistent Transactional Data Structures Live Demonstration References Overview Introduction Persistent Memory Use-Cases Pitfalls Persistent Hash Map Design Goals 2IntroductionIntroduction Persistent Hash Map Persistent Transactional Data Structures Live Demonstration References Introduction Persistent Memory ▶ Persistent Memory is positioned as a new tier in the memory Structures 4Introduction Persistent Hash Map Persistent Transactional Data Structures Live Demonstration References Traditional Memory Hierarchy CPU Registers CPU Caches (L1,L2,L3,L4) Double Data Rate (DDR)0 码力 | 56 页 | 1.90 MB | 5 月前3The Rust Programming Language,2nd Edition
copy that data into memory multiple times. References are a complex feature, and one of Rust’s major advantages is how safe and easy it is to use references. You don’t need to know a lot of those details details to finish this program: Chapter 4 will explain references more thoroughly. For now, all you need to know is that like variables, refer- ences are immutable by default. Hence, we need to write &mut should be common. Luckily for us, Rust has a feature for this concept, and it’s called references. 4.2 References and Borrowing The issue with the tuple code at the end of the preceding section is that0 码力 | 617 页 | 1.54 MB | 1 年前3Back to Basics: Move Semantics
David Olsen — Back to Basics: Move Semantics — CppCon 2020 #includeMove Semantics Rvalue references, T&&, only bind to rvalues std::move turns any expression into an rvalue Move constructor / assignment: Quick summary29 David Olsen — Back to Basics: Move Semantics — CppCon 2020 #include RVALUE REFERENCES30 David Olsen — Back to Basics: Move Semantics — CppCon 2020 #include Lvalue An lvalue lvalue • Temporary objects • Literal constants • Function return values (that aren’t lvalue references) • Results of built-in operators (that aren’t lvalues) Rvalues usually have a short lifetime36 0 码力 | 142 页 | 1.02 MB | 5 月前3Computer Programming with the Nim Programming Language
source code Control structures Objects Arrays and sequences Slices Value objects and references References and pointers Procedures and functions Object-oriented programming and inheritance Other protection. However, this can be seen as risky should a genuine Nim-related virus ever emerge. References: https://www.reddit.com/r/nim/comments/11cteg6/is_nims_site_hacked / https://forum.nim-lang only useful to the compiler but also prove beneficial for us as programmers. They act as compact references, simplifying the process of understanding and managing the code. This is particularly valuable0 码力 | 865 页 | 7.45 MB | 1 年前3Computer Programming with the Nim Programming Language
source code Control structures Objects Arrays and sequences Slices Value objects and references References and pointers Procedures and functions Object-oriented programming and inheritance Other protection. However, this can be seen as risky should a genuine Nim-related virus ever emerge. References: https://www.reddit.com/r/nim/comments/11cteg6/is_nims_site_hacked / https://forum.nim-lang only useful to the compiler but also prove beneficial for us as programmers. They act as compact references, simplifying the process of understanding and managing the code. This is particularly valuable0 码力 | 784 页 | 2.13 MB | 1 年前3Comprehensive Rust(English) 202412
. . . . . . . . . . . . . . . 46 9 References 48 9.1 Shared References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 9.2 Exclusive References . . . . . . . . . . . . . . . . . . Afternoon (2 hours and 35 minutes, including breaks) Segment Duration Tuples and Arrays 35 minutes References 55 minutes User-Defined Types 50 minutes • Day 2 Morning (2 hours and 10 minutes, including breaks) lot of ground today: • Basic Rust syntax: variables, scalar and compound types, enums, structs, references, functions, and methods. • Types and type inference. • Control flow constructs: loops, conditionals0 码力 | 382 页 | 1.00 MB | 10 月前3PostgreSQL 14.10 Documentation
............................................................ 269 9.23. Regular Expression Back References ........................................................................... 269 9.24. ARE Embedded-Option 37 | 54 | | 1994-11-29 (3 rows) You can write expressions, not just simple column references, in the select list. For example, you can do: SELECT city, (temp_hi+temp_lo)/2 AS temp_avg, date location point ); 18 Advanced Features CREATE TABLE weather ( city varchar(80) references cities(name), temp_lo int, temp_hi int, prcp real, date0 码力 | 3032 页 | 13.27 MB | 1 年前3Comprehensive Rust ?
. . . . . . . . . . . . . . . 44 9 References 46 9.1 Shared References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 9.2 Exclusive References . . . . . . . . . . . . . . . . . . Afternoon (2 hours and 35 minutes, including breaks) Segment Duration Tuples and Arrays 35 minutes References 55 minutes User-Defined Types 50 minutes • Day 2 Morning (2 hours and 10 minutes, including breaks) lot of ground today: • Basic Rust syntax: variables, scalar and compound types, enums, structs, references, functions, and methods. • Types and type inference. • Control flow constructs: loops, conditionals0 码力 | 378 页 | 1009.46 KB | 1 年前3PostgreSQL 14.10 Documentation
............................................................ 254 9.23. Regular Expression Back References ..................................................................... 255 9.24. ARE Embedded-Option 37 | 54 | | 1994-11-29 (3 rows) You can write expressions, not just simple column references, in the select list. For example, you can do: 1 While SELECT * is useful for off-the-cuff queries varchar(80) primary key, location point ); CREATE TABLE weather ( city varchar(80) references cities(name), temp_lo int, 17 Advanced Features temp_hi int, prcp0 码力 | 2871 页 | 13.38 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100