I am trying to implement a function that calculates the Cartesian product of ranges. I know there's views::zip and views::cartesian_product available, ...
I am trying to implement a function that calculates the Cartesian product of ranges. I know there's views::zip and views::cartesian_product available, ...
What is this header for? It defines, just to give an example, equal_to: namespace ranges { /// \addtogroup group-functional /// @{ struc ...
Godbolt: Here input is a contiguous, non-common, non-sized range. range-v3's take_last(n) doesn't work on such ranges, because its strategy is simp ...
I'd like to rangify the following code, which checks for the first occurance of a sequence of unique characters: I came up with the following, that ...
I want to declare a function, that gets a range as input, outputs a single number and use it directly with ranges::views::transform of the range-v3 li ...
I am using the following concepts to identify a map-like type, but it causes a cryptic error within the range-v3 v.0.12 library when used with GCC-11 ...
C++23 introduced the very powerful ranges::to for constructing an object (usually a container) from a range, with the following definition ([range.uti ...
I have a container that I want to filter. I also need the index of the items later. For that I want to use something like this: auto items_to_remove ...
[range.refinements] The viewable_range concept specifies the requirements of a range type that can be converted to a view safely. It's mandato ...
Basically I am trying to get around the fact that the following does not work with range-v3 ranges: (this is a toy example but illustrates the problem ...
This seems impossible, but just wanted to check. If I want to drop first 3 elements of vector I can do it easily: This is the action so container ...
I would like to know if its possible to concatenate two vectors holding different type of objects, such that I can then iterate on the concatenation a ...
I have the following code fragment using ranges::v3: I get the following errors It appears to be complaining about the absence of a suitable ove ...
I am trying to use ranges-v3 to split an SNMP OID into parts and return them as a std::deque<uint32_t>. The following code works but only after ...
I find the traditional syntax of most c++ stl algorithms annoying; that using them is lengthy to write is only a small issue, but that they always nee ...
I'm trying to parse a Wavefront OBJ file. If line describes a vertex, i try to split it, take XYZ-coordinates, and assign them to a tuple. For example ...
I'd like to have a generator that terminates, like python, but I can't tell from ranges::views::generate's interface if this is supported. ...
I want to make a function that works like np.arange(). With range-v3, the code is auto arange(double start, double end, double step){ assert(step ...
I'm given a CSV file with two elements per line: 1,2 12,40 11,7 ... which I want to read into a std::map<int, int>. How can I do that, using ...
Why is the following an error, while is fine? I would expect the lifetime of the temporary to be extended to the lifetime of the whole pipeline ...