StackOverflow Questions for Tag: stdvector

gbg
gbg

Reputation: 236

Visual Studio generated suspicious assembly code when a oneAPI TBB header is present in a PCH

Score: 4

Views: 207

Answers: 1

Read More
Joan Venge
Joan Venge

Reputation: 331370

How to find out if an item is present in a std::vector?

Score: 840

Views: 1609267

Answers: 21

Read More
termino
termino

Reputation: 1

How to overload a 2d vector operator[] to index it by passing a std::pair directly?

Score: 0

Views: 64

Answers: 0

Read More
user27248672
user27248672

Reputation: 11

C++17 emplace_back a struct with a non trivial union in a vector

Score: 0

Views: 52

Answers: 0

Read More
Mr. Python
Mr. Python

Reputation: 144

Is it safe to use `vec.push_back(vec.back());`?

Score: 9

Views: 340

Answers: 3

Read More
Mathieu
Mathieu

Reputation: 330

How to get const references to a range of std::vector elements?

Score: 8

Views: 261

Answers: 3

Read More
Adomas Baliuka
Adomas Baliuka

Reputation: 1620

Repeat contents of a std::vector

Score: 4

Views: 715

Answers: 4

Read More
Tryer
Tryer

Reputation: 4080

Unable to see gains on using boost::multi_array as compared to raw C array of pointers or C++ vector<vector<double>>

Score: 2

Views: 212

Answers: 2

Read More
francesco
francesco

Reputation: 7549

populate vector of boost::iostreams::filtering_stream

Score: 0

Views: 33

Answers: 0

Read More
Arquiloco
Arquiloco

Reputation: 1

Sort function doesn't work and compiler throw an error of "vector subscript out of range"?

Score: -4

Views: 108

Answers: 1

Read More
Mike
Mike

Reputation: 4269

cannot create std::vector larger than max_size() for size below max_size

Score: 2

Views: 17424

Answers: 1

Read More
Distro
Distro

Reputation: 13

Count the number of elements of a vector that satisfy a predicate

Score: 1

Views: 769

Answers: 5

Read More
joeButler
joeButler

Reputation: 1711

Count objects which have a field equal to a specific value

Score: 3

Views: 1833

Answers: 4

Read More
Mathieu
Mathieu

Reputation: 330

overwrite std::vector<T> with another std::vector<T> efficiently

Score: 2

Views: 160

Answers: 1

Read More
Valeria
Valeria

Reputation: 1248

Split vector to chunks

Score: 2

Views: 188

Answers: 2

Read More
forthewinwin
forthewinwin

Reputation: 4755

How do I print out the contents of a vector?

Score: 438

Views: 1299004

Answers: 33

Read More
Anti Earth
Anti Earth

Reputation: 4810

Workaround GCC bug to create an immediately-accessed automatically-typed vector literal of function pointers

Score: -6

Views: 115

Answers: 1

Read More
alex
alex

Reputation: 1

How to clean up a std::vector<int*> without memory leaks reported by _CrtDumpMemoryLeaks()

Score: 0

Views: 132

Answers: 2

Read More
Christopher Miller
Christopher Miller

Reputation: 3461

Is it possible to recover the actual index of elements in a `std::span`?

Score: 3

Views: 314

Answers: 1

Read More
Sliferslacker
Sliferslacker

Reputation: 43

How does nested vectors look like in memory?

Score: 2

Views: 150

Answers: 3

Read More
PreviousPage 3Next