C++20 STL Features: 1 Year of Development on GitHubuser's • Example: lookup tables • Everyone uses lookup tables • Arrays are maximally space-efficient, very time-efficient • Sorted arrays: binary_search, lower_bound, equal_range • Now you can use constexpr • spanis like a pair of T* and size_t, but better • spans are implicitly constructible from arrays and vectors • Avoids ownership confusion, accidental pointer arithmetic • span span ; (bit_cast, rotating/counting, power-of-2) • Several PRs by barcharcraz • make_shared() For Arrays • GH-309 by AdamBucior, tested by Weheineman • midpoint(), lerp() • Paolo Torres and BillyONeal 0 码力 | 45 页 | 702.09 KB | 6 月前3
FlexClassfc::Arrayh3; }; Foo* f = fc::make (3, 17, 8)(); • Non-trivial types • Multiple arrays • Correct alignment • Exception safety • Allocators • Customizable handles • More…Thank you! Twitter: 0 码力 | 8 页 | 957.56 KB | 6 月前3
C++20: An (Almost) Complete Overviewof at run time auto m { ctre::match<"[a-z]+([0-9]+)">(str) }; “The Shapes of Multi- Dimensional Arrays” -- Vincent Reverdy Thursday, September 17 • 09:0057 [[likely]], [[unlikely]] Hints for the0 码力 | 85 页 | 512.18 KB | 6 月前3
共 3 条
- 1













