Search code examples
Why does std::ranges::find_if return an iterator but std::ranges::find_last_if does not?...

c++stdstd-rangesc++23

Read More
GCC problem with std::optional and packed struct member...

c++gccclangstdoption-type

Read More
Having a function with the same name as std, how do I explicitly call the function from std?...

c++std

Read More
Dequeue adding and deleting show constant memory...

c++containersstd

Read More
Does this use of optional<string> reveal a bug in gcc?...

c++gccg++stdc++20

Read More
LLDB: Set breakpoint on std::shared_ptr<T> destructor...

c++stdshared-ptrsmart-pointerslldb

Read More
How to find if a given key exists in a std::map...

c++dictionarystdstdmap

Read More
Is there a way to extract the search from a c++ regex? (not a question about regexs but #include &lt...

c++c++11std

Read More
Vector Iterators Incompatible...

c++iteratorstdstdvector

Read More
Why use base classes for list/tree nodes in the C++ standard library?...

c++linked-listtreestd

Read More
Indirect & Direct initialization of std::atomic in C++11/17. What are the differences?...

c++c++11c++17stdstdatomic

Read More
How to sum up elements of a std::vector?...

c++vectorstdstdvector

Read More
How do you use std::accumulate to sum up a class member of elements?...

c++c++11stdaccumulate

Read More
Why can't I use operator[] with a const std::map?...

c++dictionarystdstdmapconst-correctness

Read More
What are the mechanics of short string optimization in libc++?...

c++stringoptimizationstdlibc++

Read More
Why does std::forward_list have no size() member function?...

c++c++11stdlanguage-designforward-list

Read More
Is it mandatory to have a function template to pass std::vector as an argument?...

c++stdstdvectorfunction-templates

Read More
Why is the clear() function noexcept while the destructor not?...

c++c++11stdnoexcept

Read More
How do I sort a vector of custom objects?...

c++sortingstdstdvector

Read More
How to have a auto for loops, alternative to nested for loops?...

c++algorithmfor-loopautostd

Read More
C++ string to fixed sized char array possible?...

c++stringstdcstring

Read More
In the C++ standard why is getenv defined but not setenv?...

c++environment-variablesstdstandards

Read More
Using std::vector::insert to string into vector of uint8_t puts random data in it...

c++stringstdstdvector

Read More
Do std::(unordered_)map and std::(unordered_)set share code?...

c++stdstdmapstdsetcode-size

Read More
Can I make a constexpr object of type std::set?...

c++stdconstexprstdsetinitialization-order

Read More
What is a modern way to filter a container?...

c++c++11filterstdstdvector

Read More
Any way to iterate over a vector in reverse or forwards based on a condition?...

c++stdstdvector

Read More
Erasing using iterator from 'find' or 'remove'...

c++vectorstd

Read More
Generate random numbers using C++11 random library...

c++c++11randomstd

Read More
C++11 std::thread vs Posix threads...

c++multithreadingc++11pthreadsstd

Read More
BackNext