About 83 results
Open links in new tab
  1. std::basic_string<CharT,Traits,Allocator>:: assign - Reference

    18 Dec 2024 · Example Run this code #include <iostream>#include <iterator>#include <string>int(){std::string;// assign (size_type count, CharT ch)assign(4'=');std::cout<<<<'\n ...

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

    4 Dec 2020 · This overload has the same effect as overload (1) if InputIt is an integral type.

  3. Assignment operators - cppreference.com

    20 Jan 2025 · The object referred to by target-expr is modified by replacing its value with the result of new-value. If the object referred is of an integer type T, and the result of new-value is of the …

  4. std::char_traits<char>:: assign, std::char_traits<wchar_t>:: assign ...

    29 Apr 2024 · See CharTraits for the general requirements on character traits for X::assign.

  5. std::map<Key,T,Compare,Allocator>:: insert_or_assign

    30 Oct 2021 · 1,4) If a key equivalent to k already exists in the container, assigns std::forward<M>(obj) to the mapped_type corresponding to the key k. If the key does not exist, inserts the new value as if …

  6. std::function<R (Args...)>::assign - cppreference.com

    Initializes the target with f. The alloc is used to allocate memory for any internal data structures that the function might use. Equivalent to function(std::allocator_arg, alloc, std::forward<F>(f)).swap(*this);.

  7. std:: vector - cppreference.com

    25 Apr 2025 · Except for the std::vector<bool> partial specialization, the elements are stored contiguously, which means that elements can be accessed not only through iterators, but also using …

  8. std::vector<T,Allocator>::operator= - cppreference.com

    6 May 2020 · If traits::propagate_on_container_move_assignment::value is true, the allocator of *this is replaced by a copy of that of other. If it is false and the allocators of *this and other do not compare …

  9. std::deque<T,Allocator>::assign_range - cppreference.com

    Replaces elements in the container with a copy of each element in rg.

  10. cppreference.com

    30 Mar 2025 · Planned Maintenance The site is in a temporary read-only mode to facilitate some long-overdue software updates. We apologize for any inconvenience this may cause!