• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <iterator>

    std::front_insert_iterator::operator=

    front_insert_iterator&
      operator=(const typename Container::value_type& value); // (1) C++03
    constexpr front_insert_iterator&
      operator=(const typename Container::value_type& value); // (1) C++20
    
    front_insert_iterator&
      operator=(typename Container::value_type&& value);      // (2) C++11
    constexpr front_insert_iterator&
      operator=(typename Container::value_type&& value);      // (2) C++20
    

    概要

    値を出力する

    効果

    • const参照版:container->push_front(value);
    • 右辺値参照版: container->push_front(std::move(value));

    戻り値

    *this

    参照