Questions tagged [inserter]
20 questions
0
votes
1 answer
std::inserter replacement for C++17
In this post:
set_intersection uses std::inserter as follows:
std::set_intersection(
netSet.begin(), netSet.end(),
portSet.begin(), portSet.end(),
std::inserter(result, result.end())
);
However, std::inserter is no longer available with…

user3717478
- 863
- 1
- 8
- 15
0
votes
1 answer
C++11, const data members, std::inserter, copy
There is a simple example of the class Test
#include
#include
#include
template
struct MinMax { T min, max; };
template
using TList = std::vector;
template
class Test
{
…

justik
- 4,145
- 6
- 32
- 53
0
votes
1 answer
passing pointer vector to inserter
I have two methods that I'm using with QT. The PRINTR function just prints information from my COURSE object and PRINTN is supposed to find the difference between two vectors and print the result using PRINTR. The PRINTR function works fine but I'm…

Muhammad Abdusamad
- 29
- 1
- 5
-2
votes
1 answer
Inserters in C++ confusion
So I dont understand how to use inserters in this situation. I know what are inserters, I know about std::front_inserter and std::back_inserter and std::inserter but I am confused about this problem which I will present now.
I need to make function,…

pino123
- 13
- 6
-4
votes
1 answer
C++ STL-Inserter
I'm a newbie in C++ STL. I have some problem in the below code with respect to the output.Why is this not providing the expected output?
#include
#include
#include
#include
using namespace std;
void…

M B Nandhini
- 11
- 3