IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
collections
public
ice
container
basic_container.hxx
Go to the documentation of this file.
1
3
4
#pragma once
5
#include <
ice/container/container_concepts.hxx
>
6
7
namespace
ice::container
8
{
9
10
struct
BasicContainer
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
container_concepts.hxx
ice::container
Definition
associative_container.hxx:8
ice::container::BasicContainer
Definition
basic_container.hxx:11
ice::container::BasicContainer::is_empty
constexpr bool is_empty(this Self const &self) noexcept
Definition
basic_container.hxx:13
ice::container::BasicContainer::not_empty
constexpr bool not_empty(this Self const &self) noexcept
Definition
basic_container.hxx:19
Generated by
1.18.0