1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/container/empty.hpp

17 lines
388 B
C++

#ifndef SPROUT_CONTAINER_EMPTY_HPP
#define SPROUT_CONTAINER_EMPTY_HPP
#include <sprout/config.hpp>
#include <sprout/container/size.hpp>
namespace sprout {
//
// empty
//
template<typename Container>
SPROUT_CONSTEXPR inline bool empty(Container const& cont) {
return sprout::size(cont) == 0;
}
} // namespace sprout
#endif // #ifndef SPROUT_CONTAINER_EMPTY_HPP