Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::forward_list<T,Allocator>::before_begin, cbefore_begin

      From cppreference.com
      <cpp‎ |container‎ |forward list
       
       
       
      std::forward_list
      Member functions
      Non-member functions
      (until C++20)(until C++20)(until C++20)(until C++20)(until C++20)
      Deduction guides(C++17)
       
      iterator before_begin()noexcept;
      (1)(since C++11)
      (constexpr since C++26)
      const_iterator before_begin()constnoexcept;
      (2)(since C++11)
      (constexpr since C++26)
      const_iterator cbefore_begin()constnoexcept;
      (3)(since C++11)
      (constexpr since C++26)

      Returns a non-dereferenceable iterator, incrementing the before-begin iterator gives exactly the same iterator as obtained frombegin()/cbegin().

      The only usage cases are in functionsinsert_after(),emplace_after(),erase_after(),splice_after() and the increment operator.

      Contents

      [edit]Return value

      An iterator representing the position right before the begin iterator.

      [edit]Complexity

      Constant.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns an iterator to the beginning
      (public member function)[edit]
      returns an iterator to the end
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/forward_list/before_begin&oldid=183052"

      [8]ページ先頭

      ©2009-2026 Movatter.jp