std::vprintf

Defined in header <cstdio> int vprintf( const char* format, va_list vlist ); (1) int vfprintf( std::FILE* stream, const char* format, va_list vlist ); (2) int vsprintf( char* buffer, const char* format, va_list vlist ); (3) int vsnprintf( char* buffer, std::size_t buf_size, const char* format, va_list vlist ); (4) (since C++11) Loads the data from the locations, defined by vlist, converts them to character string equivalents and writes the results to a var

std::vscanf

Defined in header <cstdio> ​int vscanf( const char* format, va_list vlist );​ (1) (since C++11) int vfscanf( std::FILE* stream, const char* format, va_list vlist ); (2) (since C++11) int vsscanf( const char* buffer, const char* format, va_list vlist ); (3) (since C++11) Reads data from the a variety of sources, interprets it according to format and stores the results into locations defined by vlist. 1) Reads the data from stdin. 2) Reads the data from file str

std::vector&lt;bool&gt;::swap

Defined in header <vector> static void swap(reference x, reference y); Swaps the contents of x and y. Parameters x - std::vector<bool>::reference value to swap with y y - std::vector<bool>::reference value to swap with x Return value (none). See also reference proxy class representing a reference to a single bool (class) std::swap(std::vector) specializes the std::swap algorithm (function template)

std::void_t

Defined in header <type_traits> template< class... > using void_t = void; (since C++17) Utility metafunction that maps a sequence of any types to the type void. Notes This metafunction is used in template metaprogramming to detect ill-formed types in SFINAE context: // primary template handles types that have no nested ::type member: template< class, class = std::void_t<> > struct has_type_member : std::false_type { }; // specialization recognizes typ

std::vector&lt;bool&gt;

Defined in header <vector> template<class Allocator> class vector<bool, Allocator>; std::vector<bool> is a space-efficient specialization of std::vector for the type bool. The manner in which std::vector<bool> is made space efficient (as well as whether it is optimized at all) is implementation defined. One potential optimization involves coalescing vector elements such that each element occupies a single bit instead of sizeof(bool) bytes. std::vect

std::vector&lt;bool&gt;::reference

class reference; The std::vector<bool> specialization defines std::vector<bool>::reference as a publicly-accessible nested class. std::vector<bool>::reference proxies the behavior of references to a single bit in std::vector<bool>. The primary use of std::vector<bool>::reference is to provide an l-value that can be returned from operator[]. Any reads or writes to a vector that happen via a std::vector<bool>::reference potentially read or write to the

std::vector&lt;bool&gt;::flip

Defined in header <vector> void flip(); Toggles each bool in the vector (replaces with its opposite value). Parameters (none). Return value (none). See also operator[] access specified element (public member function of std::vector) flip toggles the values of bits (public member function of std::bitset)

std::vector::vector

(1) explicit vector( const Allocator& alloc = Allocator() ); (until C++14) vector() : vector( Allocator() ) {} explicit vector( const Allocator& alloc ); (since C++14) (2) explicit vector( size_type count, const T& value = T(), const Allocator& alloc = Allocator()); (until C++11) vector( size_type count, const T& value, const Allocator& alloc = Allocator()); (since C++11

std::vector::swap

void swap( vector& other ); Exchanges the contents of the container with those of other. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. If std::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, then the allocators are exchanged using an unqualified call to non-member swap. Otherwise, they are not swapped (and if get_allocator() != other.

std::vector::size

size_type size() const; Returns the number of elements in the container, i.e. std::distance(begin(), end()). Parameters (none). Return value The number of elements in the container. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses size to display the number of elements in a std::vector<int>: #include <vector> #include <iostream> int main() { std::vector<int&