StackOverflow Questions for Tag: stl-algorithm

Trevor Hickey
Trevor Hickey

Reputation: 37914

Why is std::random_shuffle method deprecated in C++14?

Score: 58

Views: 13958

Answers: 5

Read More
Heiko Bloch
Heiko Bloch

Reputation: 388

Using std::lower_bound() on large arrays

Score: 4

Views: 185

Answers: 1

Read More
babelproofreader
babelproofreader

Reputation: 552

<algorithm> won't compile on Dev C++ compiler

Score: 0

Views: 901

Answers: 1

Read More
dev-here
dev-here

Reputation: 338

How can I convert std::vector<T> to a vector of pairs std::vector<std::pair<T,T>> using an STL algorithm?

Score: 23

Views: 3626

Answers: 5

Read More
metalfox
metalfox

Reputation: 6751

Using ranges::view::iota in parallel algorithms

Score: 16

Views: 7473

Answers: 3

Read More
natersoz
natersoz

Reputation: 1752

STL vector reserve() and copy()

Score: 21

Views: 25971

Answers: 5

Read More
ILikeTacos
ILikeTacos

Reputation: 18686

How to find the intersection of two STL sets?

Score: 129

Views: 139635

Answers: 6

Read More
WilliamKF
WilliamKF

Reputation: 43179

How to remove duplicates from unsorted std::vector while keeping the original ordering using algorithms?

Score: 31

Views: 33620

Answers: 9

Read More
o_oTurtle
o_oTurtle

Reputation: 1241

Can output range of algorithms in <numeric> in C++ overlap with the input range?

Score: 1

Views: 71

Answers: 1

Read More
user877329
user877329

Reputation: 6220

Standard algorithm to operate on adjacent elements

Score: 2

Views: 576

Answers: 2

Read More
Trevor Hickey
Trevor Hickey

Reputation: 37914

What's the difference between std::partial_sum and std::inclusive_scan?

Score: 33

Views: 5394

Answers: 3

Read More
BigSandwich
BigSandwich

Reputation: 2816

Which Algorithms in the standard algorithm library allocate and is there a way to specify how this allocation occurs?

Score: 1

Views: 600

Answers: 3

Read More
metalfox
metalfox

Reputation: 6751

Parallelizing a simple loop with c++17 algorithms

Score: 8

Views: 424

Answers: 1

Read More
Elliott
Elliott

Reputation: 2623

Is there a safe (defined behaviour) way to use the STL to reduce the boilerplate of efficiently filtering a vector based off its indices?

Score: 5

Views: 307

Answers: 4

Read More
Benjamin Buch
Benjamin Buch

Reputation: 6133

How can I call ExecutionPolicy algorithms in a constexpr context?

Score: 1

Views: 143

Answers: 0

Read More
Akshay Mathur
Akshay Mathur

Reputation: 560

Find last element in std::vector which satisfies a condition

Score: 20

Views: 25001

Answers: 4

Read More
Solaraeus
Solaraeus

Reputation: 440

Is std::remove_if guaranteed to call predicate in order?

Score: 8

Views: 1771

Answers: 3

Read More
Varun Garg
Varun Garg

Reputation: 2654

superset algorithm using stl giving duplicate subsets

Score: -3

Views: 412

Answers: 1

Read More
Nikos Athanasiou
Nikos Athanasiou

Reputation: 31549

Why is there no transform_if in the C++ standard library?

Score: 111

Views: 40827

Answers: 11

Read More
callum arul
callum arul

Reputation: 169

Flatten vector of classes which contain vectors of structs

Score: 2

Views: 245

Answers: 1

Read More
PreviousPage 1Next