IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
basic_container.hxx
Go to the documentation of this file.
1
3
4#pragma once
6
7namespace ice::container
8{
9
11 {
12 template<ice::concepts::Container Self>
13 constexpr bool is_empty(this Self const& self) noexcept
14 {
15 return self.size() == 0;
16 }
17
18 template<ice::concepts::Container Self>
19 constexpr bool not_empty(this Self const& self) noexcept
20 {
21 return self.is_empty() == false;
22 }
23 };
24
25} // namespace ice::container
Definition associative_container.hxx:8
Definition basic_container.hxx:11
constexpr bool is_empty(this Self const &self) noexcept
Definition basic_container.hxx:13
constexpr bool not_empty(this Self const &self) noexcept
Definition basic_container.hxx:19