About 600 results
Open links in new tab
  1. std:: vector - cppreference.com

    Apr 25, 2025 · 1)std::vector is a sequence container that encapsulates dynamic size arrays. 2)std::pmr::vector is an alias template that uses a polymorphic allocator.

  2. std::vector<T,Allocator>::vector - cppreference.com

    Nov 10, 2024 · 1) The default constructor since C++11. Constructs an empty vector with a default-constructed allocator.

  3. std::vector<T,Allocator>::erase - cppreference.com

    Jun 2, 2020 · Iterators (including the end() iterator) and references to the elements at or after the point of the erase are invalidated. The iterator pos must be valid and dereferenceable. Thus …

  4. std::vector<T,Allocator>:: insert - cppreference.com

    Aug 9, 2020 · If reallocation happens, linear in the number of elements of the vector after insertion; otherwise, linear in the number of elements inserted plus std::distance(pos, end()).

  5. std:: reverse - cppreference.com

    Feb 9, 2025 · From cppreference.com < ‎ | C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros …

  6. std::vector<T,Allocator>::at - cppreference.com

    Nov 5, 2023 · Returns a reference to the element at specified location pos, with bounds checking. If pos is not within the range of the container, an exception of type std::out_of_range is thrown.

  7. std:: sort - cppreference.com

    Feb 10, 2025 · From cppreference.com < ‎ | C++ (C++11) (C++17) (C++11) (C++26) [edit] Algorithm library Constrained algorithms and algorithms on ranges (C++20)

  8. Standard library header <vector> - cppreference.com

    Feb 19, 2025 · Contents 1Includes 2Classes 2.1Forward declarations 3Functions 3.1Range access 4Synopsis 4.1Class template std::vector 4.2Class template std::vector specialization …

  9. std::vector<T,Allocator>::resize - cppreference.com

    Nov 10, 2021 · Ranges library (C++20) Algorithms library Strings library Text processing library Numerics library Date and time library Input/output library Filesystem library (C++17) …

  10. std::accumulate - cppreference.com

    Feb 9, 2025 · Example Run this code #include <functional>#include <iostream>#include <numeric>#include <string>#include …