OpenKalman
Public Member Functions | List of all members
OpenKalman::ranges::ref_view< R > Struct Template Reference
Inheritance diagram for OpenKalman::ranges::ref_view< R >:
Inheritance graph
[legend]
Collaboration diagram for OpenKalman::ranges::ref_view< R >:
Collaboration graph
[legend]

Public Member Functions

template<typename T , std::enable_if_t< std::is_convertible_v< T, R &> and(not std::is_same_v< remove_cvref_t< T >, ref_view >), int > = 0, typename = std::void_t<decltype(FUN(std::declval<T>()))>>
constexpr ref_view (T &&t)
 Construct from a range.
 
constexpr R & base () const
 
constexpr ranges::iterator_t< R > begin () const
 
constexpr ranges::sentinel_t< R > end () const
 
constexpr bool empty () const
 Indicates whether the view is empty.
 
template<bool Enable = true, std::enable_if_t< Enable and sized_range< R >, int > = 0>
constexpr auto size () const
 The size of the object.
 
- Public Member Functions inherited from OpenKalman::ranges::view_interface< ref_view< R > >
constexpr bool empty ()
 
constexpr bool empty () const
 
constexpr auto cbegin ()
 
constexpr auto cbegin () const
 
constexpr auto cend ()
 
constexpr auto cend () const
 
constexpr operator bool ()
 
constexpr operator bool () const
 
constexpr auto size ()
 
constexpr auto size () const
 
decltype(auto) constexpr front ()
 
decltype(auto) constexpr front () const
 
decltype(auto) constexpr back ()
 
decltype(auto) constexpr back () const
 
decltype(auto) constexpr operator[] (range_difference_t< D > n)
 
decltype(auto) constexpr operator[] (range_difference_t< D > n) const
 

Member Function Documentation

◆ base()

template<typename R >
constexpr R& OpenKalman::ranges::ref_view< R >::base ( ) const
inline
Returns
A reference to the wrapped object.

◆ begin()

template<typename R >
constexpr ranges::iterator_t<R> OpenKalman::ranges::ref_view< R >::begin ( ) const
inline
Returns
An iterator at the beginning, if the base object is a range.

◆ end()

template<typename R >
constexpr ranges::sentinel_t<R> OpenKalman::ranges::ref_view< R >::end ( ) const
inline
Returns
An iterator at the end, if the base object is a range.

The documentation for this struct was generated from the following file: