cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Implementation of std::size , std::data , std::empty. More...
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
cxxomfort::cxxostd | |
Backports made available by cxxomfort. | |
Functions | |
template<typename C > | |
C::size_type | size (C &c) |
Returns the size (number of elements) of a sequence / container expression. More... | |
template<typename C > | |
constexpr auto | data (C &container) -> decltype(container.data()) |
provides access to an internal "<code>.data()</code>" member. More... | |
template<typename C > | |
bool | data (C const &container) |
provides access to an internal "<code>.empty()</code>" member. More... | |
template<typename C > | |
bool | empty (C const &c) |
Accesses and returns the .empty() member of the container. More... | |
template<typename C > | |
size_t | size (C const &c) |
Accesses and returns the .size() member of the container. More... | |
template<typename C > | |
C::pointer | data (C const &c) |
Accesses and returns the .data() member of the container. More... | |
Implementation of std::size , std::data , std::empty.