Namespaces | Classes | Functions | Variables
tl Namespace Reference

Namespaces

 detail
 \exclude
 

Classes

class  bad_optional_access
 
struct  in_place_t
 A tag type to tell optional to construct its value in-place. More...
 
class  monostate
 Used to represent an optional with no data; essentially a bool. More...
 
struct  nullopt_t
 A tag type to represent an empty optional. More...
 
class  optional
 
class  optional< T & >
 

Functions

template<class T , class... Args>
constexpr optional< T > make_optional (Args &&... args)
 
template<class T , class U , class... Args>
constexpr optional< T > make_optional (std::initializer_list< U > il, Args &&... args)
 
template<class T = detail::i_am_secret, class U , class Ret = detail::conditional_t<std::is_same<T, detail::i_am_secret>::value, detail::decay_t<U>, T>>
constexpr optional< Ret > make_optional (U &&v)
 
template<class T , class U >
constexpr bool operator!= (const optional< T > &lhs, const optional< U > &rhs)
 
template<class T , class U >
constexpr bool operator!= (const optional< T > &lhs, const U &rhs)
 
template<class T >
constexpr bool operator!= (const optional< T > &lhs, nullopt_t) noexcept
 
template<class T , class U >
constexpr bool operator!= (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator!= (nullopt_t, const optional< T > &rhs) noexcept
 
template<class T >
constexpr bool operator< (const optional< T > &, nullopt_t) noexcept
 
template<class T , class U >
constexpr bool operator< (const optional< T > &lhs, const optional< U > &rhs)
 
template<class T , class U >
constexpr bool operator< (const optional< T > &lhs, const U &rhs)
 
template<class T , class U >
constexpr bool operator< (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator< (nullopt_t, const optional< T > &rhs) noexcept
 
template<class T , class U >
constexpr bool operator<= (const optional< T > &lhs, const optional< U > &rhs)
 
template<class T , class U >
constexpr bool operator<= (const optional< T > &lhs, const U &rhs)
 
template<class T >
constexpr bool operator<= (const optional< T > &lhs, nullopt_t) noexcept
 
template<class T , class U >
constexpr bool operator<= (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator<= (nullopt_t, const optional< T > &) noexcept
 
template<class T , class U >
constexpr bool operator== (const optional< T > &lhs, const optional< U > &rhs)
 Compares two optional objects. More...
 
template<class T , class U >
constexpr bool operator== (const optional< T > &lhs, const U &rhs)
 Compares the optional with a value. More...
 
template<class T >
constexpr bool operator== (const optional< T > &lhs, nullopt_t) noexcept
 Compares an optional to a nullopt More...
 
template<class T , class U >
constexpr bool operator== (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator== (nullopt_t, const optional< T > &rhs) noexcept
 
template<class T , class U >
constexpr bool operator> (const optional< T > &lhs, const optional< U > &rhs)
 
template<class T , class U >
constexpr bool operator> (const optional< T > &lhs, const U &rhs)
 
template<class T >
constexpr bool operator> (const optional< T > &lhs, nullopt_t) noexcept
 
template<class T , class U >
constexpr bool operator> (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator> (nullopt_t, const optional< T > &) noexcept
 
template<class T >
constexpr bool operator>= (const optional< T > &, nullopt_t) noexcept
 
template<class T , class U >
constexpr bool operator>= (const optional< T > &lhs, const optional< U > &rhs)
 
template<class T , class U >
constexpr bool operator>= (const optional< T > &lhs, const U &rhs)
 
template<class T , class U >
constexpr bool operator>= (const U &lhs, const optional< T > &rhs)
 
template<class T >
constexpr bool operator>= (nullopt_t, const optional< T > &rhs) noexcept
 
template<class T , detail::enable_if_t< std::is_move_constructible< T >::value > * = nullptr, detail::enable_if_t< detail::is_swappable< T >::value > * = nullptr>
void swap (optional< T > &lhs, optional< T > &rhs) noexcept(noexcept(lhs.swap(rhs)))
 

Variables

static constexpr in_place_t in_place {}
 A tag to tell optional to construct its value in-place. More...
 
static constexpr nullopt_t nullopt
 Represents an empty optional. More...
 

Function Documentation

◆ make_optional() [1/3]

template<class T , class... Args>
constexpr optional<T> tl::make_optional ( Args &&...  args)
inlineconstexpr

Definition at line 1492 of file 3rdparty/tl/optional.hpp.

◆ make_optional() [2/3]

template<class T , class U , class... Args>
constexpr optional<T> tl::make_optional ( std::initializer_list< U >  il,
Args &&...  args 
)
inlineconstexpr

Definition at line 1496 of file 3rdparty/tl/optional.hpp.

◆ make_optional() [3/3]

template<class T = detail::i_am_secret, class U , class Ret = detail::conditional_t<std::is_same<T, detail::i_am_secret>::value, detail::decay_t<U>, T>>
constexpr optional<Ret> tl::make_optional ( U &&  v)
inlineconstexpr

Definition at line 1487 of file 3rdparty/tl/optional.hpp.

◆ operator!=() [1/5]

template<class T , class U >
constexpr bool tl::operator!= ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Definition at line 1345 of file 3rdparty/tl/optional.hpp.

◆ operator!=() [2/5]

template<class T , class U >
constexpr bool tl::operator!= ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Definition at line 1431 of file 3rdparty/tl/optional.hpp.

◆ operator!=() [3/5]

template<class T >
constexpr bool tl::operator!= ( const optional< T > &  lhs,
nullopt_t   
)
inlineconstexprnoexcept

Definition at line 1381 of file 3rdparty/tl/optional.hpp.

◆ operator!=() [4/5]

template<class T , class U >
constexpr bool tl::operator!= ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1435 of file 3rdparty/tl/optional.hpp.

◆ operator!=() [5/5]

template<class T >
constexpr bool tl::operator!= ( nullopt_t  ,
const optional< T > &  rhs 
)
inlineconstexprnoexcept

Definition at line 1385 of file 3rdparty/tl/optional.hpp.

◆ operator<() [1/5]

template<class T >
constexpr bool tl::operator< ( const optional< T > &  ,
nullopt_t   
)
inlineconstexprnoexcept

Definition at line 1389 of file 3rdparty/tl/optional.hpp.

◆ operator<() [2/5]

template<class T , class U >
constexpr bool tl::operator< ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Definition at line 1351 of file 3rdparty/tl/optional.hpp.

◆ operator<() [3/5]

template<class T , class U >
constexpr bool tl::operator< ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Definition at line 1439 of file 3rdparty/tl/optional.hpp.

◆ operator<() [4/5]

template<class T , class U >
constexpr bool tl::operator< ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1443 of file 3rdparty/tl/optional.hpp.

◆ operator<() [5/5]

template<class T >
constexpr bool tl::operator< ( nullopt_t  ,
const optional< T > &  rhs 
)
inlineconstexprnoexcept

Definition at line 1393 of file 3rdparty/tl/optional.hpp.

◆ operator<=() [1/5]

template<class T , class U >
constexpr bool tl::operator<= ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Definition at line 1361 of file 3rdparty/tl/optional.hpp.

◆ operator<=() [2/5]

template<class T , class U >
constexpr bool tl::operator<= ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Definition at line 1447 of file 3rdparty/tl/optional.hpp.

◆ operator<=() [3/5]

template<class T >
constexpr bool tl::operator<= ( const optional< T > &  lhs,
nullopt_t   
)
inlineconstexprnoexcept

Definition at line 1397 of file 3rdparty/tl/optional.hpp.

◆ operator<=() [4/5]

template<class T , class U >
constexpr bool tl::operator<= ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1451 of file 3rdparty/tl/optional.hpp.

◆ operator<=() [5/5]

template<class T >
constexpr bool tl::operator<= ( nullopt_t  ,
const optional< T > &   
)
inlineconstexprnoexcept

Definition at line 1401 of file 3rdparty/tl/optional.hpp.

◆ operator==() [1/5]

template<class T , class U >
constexpr bool tl::operator== ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Compares two optional objects.

Definition at line 1339 of file 3rdparty/tl/optional.hpp.

◆ operator==() [2/5]

template<class T , class U >
constexpr bool tl::operator== ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Compares the optional with a value.

Definition at line 1423 of file 3rdparty/tl/optional.hpp.

◆ operator==() [3/5]

template<class T >
constexpr bool tl::operator== ( const optional< T > &  lhs,
nullopt_t   
)
inlineconstexprnoexcept

Compares an optional to a nullopt

Definition at line 1373 of file 3rdparty/tl/optional.hpp.

◆ operator==() [4/5]

template<class T , class U >
constexpr bool tl::operator== ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1427 of file 3rdparty/tl/optional.hpp.

◆ operator==() [5/5]

template<class T >
constexpr bool tl::operator== ( nullopt_t  ,
const optional< T > &  rhs 
)
inlineconstexprnoexcept

Definition at line 1377 of file 3rdparty/tl/optional.hpp.

◆ operator>() [1/5]

template<class T , class U >
constexpr bool tl::operator> ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Definition at line 1356 of file 3rdparty/tl/optional.hpp.

◆ operator>() [2/5]

template<class T , class U >
constexpr bool tl::operator> ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Definition at line 1455 of file 3rdparty/tl/optional.hpp.

◆ operator>() [3/5]

template<class T >
constexpr bool tl::operator> ( const optional< T > &  lhs,
nullopt_t   
)
inlineconstexprnoexcept

Definition at line 1405 of file 3rdparty/tl/optional.hpp.

◆ operator>() [4/5]

template<class T , class U >
constexpr bool tl::operator> ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1459 of file 3rdparty/tl/optional.hpp.

◆ operator>() [5/5]

template<class T >
constexpr bool tl::operator> ( nullopt_t  ,
const optional< T > &   
)
inlineconstexprnoexcept

Definition at line 1409 of file 3rdparty/tl/optional.hpp.

◆ operator>=() [1/5]

template<class T >
constexpr bool tl::operator>= ( const optional< T > &  ,
nullopt_t   
)
inlineconstexprnoexcept

Definition at line 1413 of file 3rdparty/tl/optional.hpp.

◆ operator>=() [2/5]

template<class T , class U >
constexpr bool tl::operator>= ( const optional< T > &  lhs,
const optional< U > &  rhs 
)
inlineconstexpr

Definition at line 1366 of file 3rdparty/tl/optional.hpp.

◆ operator>=() [3/5]

template<class T , class U >
constexpr bool tl::operator>= ( const optional< T > &  lhs,
const U &  rhs 
)
inlineconstexpr

Definition at line 1463 of file 3rdparty/tl/optional.hpp.

◆ operator>=() [4/5]

template<class T , class U >
constexpr bool tl::operator>= ( const U &  lhs,
const optional< T > &  rhs 
)
inlineconstexpr

Definition at line 1467 of file 3rdparty/tl/optional.hpp.

◆ operator>=() [5/5]

template<class T >
constexpr bool tl::operator>= ( nullopt_t  ,
const optional< T > &  rhs 
)
inlineconstexprnoexcept

Definition at line 1417 of file 3rdparty/tl/optional.hpp.

◆ swap()

template<class T , detail::enable_if_t< std::is_move_constructible< T >::value > * = nullptr, detail::enable_if_t< detail::is_swappable< T >::value > * = nullptr>
void tl::swap ( optional< T > &  lhs,
optional< T > &  rhs 
)
noexcept

Definition at line 1474 of file 3rdparty/tl/optional.hpp.

Variable Documentation

◆ in_place

constexpr in_place_t tl::in_place {}
staticconstexpr

A tag to tell optional to construct its value in-place.

Definition at line 117 of file 3rdparty/tl/optional.hpp.

◆ nullopt

constexpr nullopt_t tl::nullopt
staticconstexpr
Initial value:
{nullopt_t::do_not_use{},
nullopt_t::do_not_use{}}

Represents an empty optional.

Definition at line 663 of file 3rdparty/tl/optional.hpp.



depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20