Coliru: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Claas (Diskussion | Beiträge) (→String Proxy Puzzle: Update) |
Claas (Diskussion | Beiträge) (optional as function argument) |
||
(19 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 18: | Zeile 18: | ||
* [https://wandbox.org/permlink/Pk6kq4cYIRuLVrbV Atomic add float] | * [https://wandbox.org/permlink/Pk6kq4cYIRuLVrbV Atomic add float] | ||
* [http://coliru.stacked-crooked.com/a/d98278b43cff60dd Unique type for each generated element of class] | * [http://coliru.stacked-crooked.com/a/d98278b43cff60dd Unique type for each generated element of class] | ||
* [https://wandbox.org/permlink/PVoV3typR0r18eKz Struct designated initializers] [https://en.cppreference.com/w/cpp/language/aggregate_initialization#Designated_initializers cppreference] | |||
* [https://wandbox.org/permlink/Fgt359RjPGpTir9b Hash of variant] | |||
* [https://wandbox.org/permlink/KalQIcWgOufnLzrU Non-const and const member functions with is_const on *this] | |||
* [https://wandbox.org/permlink/CwVfbwL77aC3DJwU Overloading based on variadic templates for obtaining automatic function overloading. Version that also compiles with GCC.], [https://wandbox.org/permlink/OyLHSr0WByfF1Shb complex solution] | |||
* [https://wandbox.org/permlink/8g1RbTkndIeoLcWO Copy one variant to a sub-type], [https://wandbox.org/permlink/Mj2gnOQLE0Qb4Drq alternative] | |||
** [https://wandbox.org/permlink/FRmLoitheLqK8Sbb Both directions] | |||
* [https://wandbox.org/permlink/1EVCg3MZX3PB210c nD array view], [https://wandbox.org/permlink/wlwiKD6BH8Loc5JM ext. initializer list] | |||
* [https://wandbox.org/permlink/sTiIQw8PBG8cHYMc Slices in square brackets] | |||
* Preventing to obtain shared_ptr from unique_ptr [https://wandbox.org/permlink/ATbKJ7uIfSj0rsNC 1], [https://wandbox.org/permlink/wcT8R7bEJWbPlodE 2] | |||
* [http://coliru.stacked-crooked.com/a/8cd5ad43f0252209 optional as function argument] | |||
== String Proxy Puzzle == | == String Proxy Puzzle == | ||
* [https://gcc.godbolt.org/z/3Hcn8H Trial 1] | * [https://gcc.godbolt.org/z/3Hcn8H Trial 1] | ||
* [https://gcc.godbolt.org/z/ | * [https://gcc.godbolt.org/z/lhDlAJ Trial 2 (hash)] |
Aktuelle Version vom 20. August 2021, 12:34 Uhr
- Variant with hierarchy and partial overloading
- Access enum as constant expression
- enum class casting rules
- Test constexpr with template functor
- Change variable in parameter pack expansion
- Pitfalls of bitset::operator
- non_negative
- one_of, C++14
- Optional automatic determination of template parameter
- Non-const constexpr member function
- make_switch
- constexpr: Use tag dispatching for runtime/compile-time path
- constexpr: Default generated constructors
- Atomic add float
- Unique type for each generated element of class
- Struct designated initializers cppreference
- Hash of variant
- Non-const and const member functions with is_const on *this
- Overloading based on variadic templates for obtaining automatic function overloading. Version that also compiles with GCC., complex solution
- Copy one variant to a sub-type, alternative
- nD array view, ext. initializer list
- Slices in square brackets
- Preventing to obtain shared_ptr from unique_ptr 1, 2
- optional as function argument