cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Provides the global accessor at_or()
and atindex_or()
.
More...
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
Functions | |
template<typename C > | |
C::const_reference | at_or (C const &cont, typename C::size_type ind, typename C::const_reference alt) CXXO_NOEXCEPTNOTHROW |
Accesses the ind -th element of cont if it exists, else alt . More... | |
template<typename C > | |
C::reference | at_or (C &cont, typename C::size_type ind, typename C::reference alt) CXXO_NOEXCEPTNOTHROW |
at_or | |
template<typename C > | |
C::value_type const & | atindex_or (C const &cont, typename C::size_type ind, typename C::const_reference alt) CXXO_NOEXCEPTNOTHROW |
Accesses the ind -th element of cont if it exists, else alt . More... | |
Provides the global accessor at_or()
and atindex_or()
.