Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in c++17

Difference between S() vs S{}?

Neat way how to cyclically iterate 4 enum class values in both directions in C++?

Write a function that only accepts literal `0` or literal `1` as argument

How to Insert spaces in (cout << ... << args) using fold expressions?

c++17 fold-expression

inline variable is initialized more than once

C++ compile-time substring

c++ c++14 c++17

Why in C++11 or C++14 does the compiler implicitly delete the copy constructor when I declare a move assignment operator?

How to in-place-construct an optional aggregate?

What is the fastest way to see if an array has two common elements?

Is it possible to use `std::set_intersection` to check if two sets have any element in common?

c++ stl iterator set c++17

Using initializer list for a struct with inheritance

Why does the parallel for_each require forward iterators?

What is std::contiguous_iterator useful for?

c++ iterator c++17

Why can't I use operator bool() for std::ofstream

c++ c++11 c++14 c++17

Auto non-type template parameter with user defined types

c++ templates c++17

Prevent equality comparison of sibling structs

c++ inheritance c++17 siblings

Can be std::function inlined or should I use different approach?

How to make `short-circuit evaluation` also available in `fold expressions`?

Why is std::abs(9484282305798401ull) = 9484282305798400?

Why 'is_convertible' here in <utility> std::pair (STL)?

c++ c++17 standard-library