Back to Basics Conceptsjosuttis | eckstein IT communication ## Back To Basics Concepts ## NICOLAI JOSUTTIS  September 18, 2024 14:00 - 15:00 jpg)  C++20 ## Concepts, Constraints, and Requirements C++ ©2024 by josuttis.com 3 josuttis | eckstein IT communication for declarations (ignoring return types) josuttis | eckstein IT communication Constraints with Concepts C++20 templateconcept HasPushBack = requires (CollT c, CollT::value_type v) 0 码力 | 23 页 | 2.14 MB | 1 年前3
GITOPS EXPLAINED: CONCEPTS, BENEFITS & GETTING STARTED# GITOPS EXPLAINED: CONCEPTS, BENEFITS & GETTING STARTED  DevOps has changed the way we develop and manage applications0 码力 | 7 页 | 426.93 KB | 2 年前3
Six Ways for Implementing Math Expressions CalculatorImplementing Math Expressions Calculator A walk through polymorphism, smart pointers, templates, concepts and more Amir Kirsh  Using C++20 concepts! ## Removing the need to explicitly create Numbers! Attempt #3: http://coliru.stacked-crooked require safety nets to avoid abuse or obscure compilation errors (use static_assert and SFINAE or concepts to restrict usage) - Don’t avoid using templates because of longer compilation time, there are0 码力 | 63 页 | 1.85 MB | 1 年前3
Constructing Generic AlgorithmsCATEGORIES (CONCEPTS) • input_iterator • output_iterator • forward_iterator • bidirectional_iterator • random_access_iterator • contiguous_iterator ## C++17 iterator categories got a concepts specification different concepts ## I TERATOR CONCEPT QUESTIONS 1. Am I using any standard algorithms? Which concept(s) do they require? • also informs complexity guarantees, maybe different for different concepts 2. Do concept(s) do they require? • also informs complexity guarantees, maybe different for different concepts 2. Do I look at an element after moving past it? 3. Do I return an element after moving past it0 码力 | 145 页 | 8.44 MB | 1 年前3
Effective Ranges: A tutorial for using C++2X rangesdivisible_by3); // [6, 3] https://godbolt.org/z/bnchn9jaf ## talk outline • range basics & concepts • range algo details and survey • range views details and survey • adjuncts • observations & interally controlled by algorithm • added projection arguments • return values improved ## range concepts: sized, etc • range - provides a begin iterator and an end sentinel - input_range - specifies algorithms, but better • improved return information compared to STL for some algos • specified with concepts ## cheatsheet c++2x Range Algorithms ** queries : ~find~, ~find_if~, ~find_if_not~ ** queries0 码力 | 56 页 | 15.30 MB | 1 年前3
Regular, RevisitedGeneric Programming” paper, we see that regular types naturally appear as necessary foundational concepts in programming. Why do we need to bother with such taxonomies? Because STL assumes such properties behavior for the caller. This talk will explore the relation between Regular types (plus other concepts) and STL constructs, with examples, common pitfalls and guidance. ## S Advanced Installer 












