mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
19 lines
445 B
C++
19 lines
445 B
C++
|
#ifndef SPROUT_FIXED_CONTAINER_EMPTY_HPP
|
||
|
#define SPROUT_FIXED_CONTAINER_EMPTY_HPP
|
||
|
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/fixed_container/traits.hpp>
|
||
|
#include <sprout/fixed_container/size.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
//
|
||
|
// empty
|
||
|
//
|
||
|
template<typename Range>
|
||
|
SPROUT_CONSTEXPR bool empty(Range const& range) {
|
||
|
return sprout::size(range) == 0;
|
||
|
}
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_FIXED_CONTAINER_EMPTY_HPP
|