OpenKalman
Public Member Functions | Static Public Member Functions | List of all members
OpenKalman::ranges::single_view< T > Struct Template Reference

Equivalent to std::ranges::single_view. More...

#include <single.hpp>

Inheritance diagram for OpenKalman::ranges::single_view< T >:
Inheritance graph
[legend]
Collaboration diagram for OpenKalman::ranges::single_view< T >:
Collaboration graph
[legend]

Public Member Functions

template<typename aT = T, std::enable_if_t< std::is_default_constructible_v< aT >, int > = 0>
constexpr single_view ()
 Default constructor.
 
template<typename aT = T, std::enable_if_t< std::is_copy_constructible_v< aT >, int > = 0>
constexpr single_view (const T &t)
 Construct from an object convertible to type T.
 
constexpr single_view (T &&t)
 Construct from an object convertible to type T.
 
constexpr T * begin () noexcept
 Equivalent to data();.
 
constexpr const T * begin () const noexcept
 
constexpr T * end () noexcept
 Equivalent to data() + 1;.
 
constexpr const T * end () const noexcept
 
constexpr T * data () noexcept
 A pointer to the contained value.
 
constexpr const T * data () const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
- Public Member Functions inherited from OpenKalman::ranges::view_interface< single_view< T > >
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
 

Static Public Member Functions

static constexpr auto empty () noexcept
 
static constexpr std::size_t size () noexcept
 The size of the resulting object (which is always 1)
 

Detailed Description

template<typename T>
struct OpenKalman::ranges::single_view< T >

Equivalent to std::ranges::single_view.

Member Function Documentation

◆ begin()

template<typename T>
constexpr const T* OpenKalman::ranges::single_view< T >::begin ( ) const
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ empty()

template<typename T>
static constexpr auto OpenKalman::ranges::single_view< T >::empty ( )
inlinestaticnoexcept
Returns
false

◆ end()

template<typename T>
constexpr const T* OpenKalman::ranges::single_view< T >::end ( ) const
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


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