About 76 results
Open links in new tab
  1. std::vector<T,Allocator>::front - cppreference.com - C++ Reference

    Returns a reference to the first element in the container. Calling front on an empty container causes undefined behavior.

  2. std::array<T,N>::front - cppreference.com - C++ Reference

    Returns a reference to the first element in the container. Calling front on an empty container causes undefined behavior.

  3. std::inplace_vector<T,N>::front - cppreference.com - C++ Reference

    Return value Reference to the first element. Complexity Constant. Notes For a container c, the expression c.front() is equivalent to *c.begin(). Example The following code uses front to display the …

  4. std::forward_list<T,Allocator>:: front - cppreference.dev

    Notes For a container c, the expression c.front() is equivalent to *c.begin().

  5. std::deque<T,Allocator>::front - cppreference.com - C++ Reference

    Return value Reference to the first element. Complexity Constant. Notes For a container c, the expression c.front() is equivalent to *c.begin(). Example

  6. std::span<T,Extent>::front - cppreference.com - C++ Reference

    Calling front on an empty span results in undefined behavior.

  7. std::ranges::view_interface<D>:: front - cppreference.dev

    The default implementation of front () member function returns the first element in the view of the derived type. Whether the element is returned by value or by reference depends on the operator* of the …

  8. std::front_inserter - cppreference.com - C++ Reference

    front_inserter is a convenience function template that constructs a std::front_insert_iterator for the container c with the type deduced from the type of the argument.

  9. std::basic_string_view<CharT,Traits>::front - cppreference.com - C++ ...

    Returns reference to the first character in the view. The behavior is undefined if empty() == true.

  10. std::basic_string<CharT,Traits,Allocator>::front - cppreference.com ...

    Returns reference to the first character in the string. The behavior is undefined if empty () is true.