Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::queue<T,Container>::front

      From cppreference.com
      <cpp‎ |container‎ |queue
       
       
       
       
      reference front();
      const_reference front()const;

      Returns reference to the first element in the queue. This element will be the first element to be removed on a call topop(). Effectively callsc.front().

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      Reference to the first element.

      [edit]Complexity

      Constant.

      [edit]See also

      access the last element
      (public member function)[edit]
      removes the first element
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/queue/front&oldid=161981"

      [8]ページ先頭

      ©2009-2025 Movatter.jp