Gang Of Coders
Home
About Us
Contact Us
All C++17 Solutions on Gang of Coders
Total of 79 C++17 Solutions
What are the new features in C++17?
C++
Standards
C++ Faq
C++17
What are Aggregates and PODs and how/why are they special?
C++
C++11
Aggregate
C++17
Standard Layout
enum to string in modern C++11 / C++14 / C++17 and future C++20
C++
String
Enums
C++17
C++20
What is the purpose of std::launder?
C++
Memory
C++17
C++ Faq
Stdlaunder
How exactly is std::string_view faster than const std::string&?
C++
String
C++17
String View
std::lock_guard or std::scoped_lock?
C++
Multithreading
Locking
C++17
What is string_view?
C++
C++17
String View
Fundamentals Ts
What made i = i++ + 1; legal in C++17?
C++
Language Lawyer
C++17
Does C++11, 14, 17 or 20 introduce a standard constant for pi?
C++
C++11
C++14
Language Lawyer
C++17
How to enable C++17 compiling in Visual Studio?
C++
Visual Studio
Compilation
C++17
How do inline variables work?
C++
C++17
polymorphic_allocator: when and why should I use it?
C++
Allocator
C++17
Most elegant way to write a one-shot 'if'
C++
If Statement
C++17
Lambda returning itself: is this legal?
C++
Lambda
Language Lawyer
C++17
Auto
experimental::filesystem linker error
C++
Gcc
C++17
C++20 behaviour breaking existing code with equality operator?
C++
C++17
C++20
Spaceship Operator
Why use std::make_unique in C++17?
C++
C++17
Unique Ptr
std::ignore with structured bindings?
C++
C++17
Language Lawyer
Structured Bindings
Std Tie
How does guaranteed copy elision work?
C++
C++17
Copy Elision
What are the evaluation order guarantees introduced by C++17?
C++
C++17
Operator Precedence
Lambda implicit capture fails with variable declared from structured binding
C++
Lambda
Visual Studio-2017
C++17
Structured Bindings
Why is there no support for concatenating std::string and std::string_view?
C++
String
C++17
String View
What are template deduction guides and when should we use them?
C++
Templates
C++17
C++ Faq
Template Argument-Deduction
How to enable C++17 in CMake
C++
Visual Studio
Cmake
C++17
How to get the file size in bytes with C++17
C++
C++17
Filesize
C++ Standard-Library
How to efficiently get a `string_view` for a substring of `std::string`
C++
View
C++17
Stdstring
Are the experimental features of modern C++ reliable for long-term projects?
C++
C++11
Portability
C++17
C++ Standard-Library
When does type information flow backwards in C++?
C++
Types
Language Lawyer
C++17
Type Deduction
Why is GCC warning me about a fallthrough even when I use [[fallthrough]]?
C++
Switch Statement
C++17
Fall Through
Understanding std::hardware_destructive_interference_size and std::hardware_constructive_interference_size
C++
Multithreading
Concurrency
C++17
Cpu Cache
Why is there no implicit conversion from std::string_view to std::string?
C++17
String View
Deprecated header <codecvt> replacement
C++
Utf 8
C++17
Utf 16
Codecvt
Is a pointer with the right address and type still always a valid pointer since C++17?
C++
Pointers
C++14
Language Lawyer
C++17
Is it allowed for a compiler to optimize away a local volatile variable?
C++
Language Lawyer
C++17
Volatile
Preparation for std::iterator Being Deprecated
C++
Iterator
Standards
Deprecated
C++17
fatal error: filesystem: No such file or directory
C++
C++17
Initializing variables in an "if" statement
C++
C++17
Cv-qualifications of prvalues (revisited)
C++
Language Lawyer
C++17
Temporary Objects
Prvalue
C++17: Keep only some members when tuple unpacking
C++
Tuples
C++17
What's the difference between static constexpr and static inline variables in C++17?
C++
C++17
Constexpr
`std::variant` vs. inheritance vs. other ways (performance)
C++
Performance
Inheritance
C++17
Std Variant
How do you implement Coroutines in C++
C++
Coroutine
C++17
How the new range-based for loop in C++17 helps Ranges TS?
C++
C++11
For Loop
C++17
Get Apple clang version and corresponding upstream LLVM version
C++11
Clang
C++14
Llvm Clang
C++17
Why is the construction of std::optional<int> more expensive than a std::pair<int, bool>?
C++
Performance
Assembly
X86 64
C++17
Do I need to put constexpr after else-if?
C++
If Statement
C++17
If Constexpr
Exact moment of "return" in a C++-function
C++
Language Lawyer
C++17
Object Lifetime
Copy Elision
std::string s1 {"Modern C++", 3} vs std::string s1 {str, 3}
C++
String
C++17
Difference between "if constexpr()" Vs "if()"
C++
If Statement
Constexpr
C++17
Where to use std::variant over union?
C++
C++17
Advantages of auto in template parameters in C++17
C++
Templates
Auto
C++17
Why isn't there a std::construct_at in C++17?
C++
C++17
Placement New
Changed rules for protected constructors in C++17?
C++
Constructor
Language Lawyer
C++17
Protected
Equivalent ternary operator for constexpr if?
C++
Constexpr
C++17
If Constexpr
Why has std::reduce been added in C++17?
C++
Std
C++17
Are nested structured bindings possible?
C++
C++17
Structured Bindings
Is there a nice way to assign std::minmax(a, b) to std::tie(a, b)?
C++
Algorithm
Reference
Stl
C++17
Why did the range based 'for' loop specification change in C++17?
C++
For Loop
Language Lawyer
C++17
How can I emulate destructuring in C++?
C++
C++17
Destructuring
Language Construct
constexpr if and static_assert
C++
Templates
Constexpr
C++17
Static Assert
reinterpret_cast creating a trivially default-constructible object
C++
C++11
Language Lawyer
C++17
How to use new std::byte type in places where old-style unsigned char is needed?
C++
Vector
C++17
How to get the address of a C++ lambda function within the lambda itself?
C++
C++11
Lambda
C++14
C++17
Difference between execution policies and when to use them
C++
C++17
Why do C++17 structured bindings not use { }?
C++
C++17
Structured Bindings
Is stateful metaprogramming ill-formed (yet)?
C++
Language Lawyer
Metaprogramming
C++17
Strongly typed using and typedef
C++
C++14
C++17
Why are are std::allocator's construct and destroy functions deprecated in c++17?
C++
Memory Management
Language Lawyer
Allocator
C++17
Ternary operator implicit cast to base class
C++
Language Lawyer
C++17
Ternary Operator
Implicit Conversion
Is std::memcpy between different trivially copyable types undefined behavior?
C++
Language Lawyer
C++17
Undefined Behavior
Strict Aliasing
Simplest way to determine return type of function
C++
Function
C++17
Return Type
Compile Time
Is it possible to get a pointer to one subobject via a pointer to a different, unreleated subobject?
C++
Pointers
Language Lawyer
C++17
Offsetof
Restrict variadic template arguments
C++
Templates
Variadic Templates
C++17
C++ Faq
macOS Clang C++17 filesystem header not found
C++
Macos
Gcc
Clang
C++17
Why is S::x not odr-used?
C++
Language Lawyer
C++17
Is it possible in modern C++ to pass a string literal as a parameter to a C++ template?
C++
C++17
C++20
Why is std::move not [[nodiscard]] in C++20?
C++
C++17
Language Lawyer
C++20
Nodiscard
std::optional - construct empty with {} or std::nullopt?
C++
C++17
Optional
Is there any reason to use std::map::emplace() instead of try_emplace() in C++1z?
C++
C++17