Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 863 Bytes

File metadata and controls

33 lines (24 loc) · 863 Bytes

operator=

  • iterator[meta header]
  • std[meta namespace]
  • front_insert_iterator[meta class]
  • function[meta id-type]
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

参照