blob: 2c77ae3e4a306d79bb46be9c82bb252ed0d60fd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* optional.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/16 11:43:24 by charles #+# #+# */
/* Updated: 2020/04/16 11:45:26 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef OPTIONAL_HPP
# define OPTIONAL_HPP
template<typename T>
class Optional
{
public:
Optional();
bool hasValue() const;
T& getValue();
private:
T m_value;
};
#endif
|