Top "Std" questions

The C++ Standard Library, and its namespace.

In C++ check if std::vector<string> contains a certain value

Is there any built in function which tells me that my vector contains a certain element or not e.g. …

c++ vector std stdvector
Append an int to a std::string

Why is this code gives an Debug Assertion Fail? std::string query; int ClientID = 666; query = "select logged from login where …

c++ std
Sorting std::map using value

I need to sort an std::map by value rather than by key. Is there an easy way to do …

c++ dictionary std
How do I reverse a C++ vector?

Is there a built-in vector function in C++ to reverse a vector in place? Or do you just have to …

c++ vector stl std
C++ create string of text and variables

I'm trying to do something very simple and yet, after an hour of so of searching a I can't find …

c++ string variables std
declaring a priority_queue in c++ with a custom comparator

I'm trying to declare a priority_queue of nodes, using bool Compare(Node a, Node b) as the comparator function (…

c++ std priority-queue
How to iterate over a std::map full of strings in C++

I have the following issue related to iterating over an associative array of strings defined using std::map. -- snip …

c++ dictionary iterator std stdmap
How to declare std::unique_ptr and what is the use of it?

I try to understand how std::unique_ptr works and for that I found this document. The author starts from …

c++ pointers std unique-ptr
Passing std::string by Value or Reference

Possible Duplicate: Are the days of passing const std::string & as a parameter over? Should I pass std::string …

c++ string std move-semantics
How do I Search/Find and Replace in a standard string?

Is there a way to replace all occurrences of a substring with another string in std::string? For instance: void …

c++ replace std