22 [[nodiscard]]
constexpr indent(
int spaces = 4,
char space =
' ') noexcept :
23 _space(space), _spaces(spaces), _depth(0) {}
25 [[nodiscard]]
constexpr indent(
indent const &other) noexcept :
26 _space(other._space), _spaces(other._spaces), _depth(other._depth) {}
28 [[nodiscard]]
constexpr indent(
indent &&other) noexcept :
29 _space(other._space), _spaces(other._spaces), _depth(other._depth) {}
31 [[nodiscard]]
constexpr indent &operator=(
indent const &other)
noexcept
33 _space = other._space;
34 _spaces = other._spaces;
35 _depth = other._depth;
39 [[nodiscard]]
constexpr indent &operator=(
indent &&other)
noexcept
41 _space = other._space;
42 _spaces = other._spaces;
43 _depth = other._depth;
Indentation for writing out text files.
Definition indent.hpp:14
constexpr indent & operator+=(int rhs) noexcept
Increase the depth of this indentation.
Definition indent.hpp:56
constexpr indent & operator++() noexcept
Increment the depth of this indentation.
Definition indent.hpp:64
constexpr friend indent operator+(indent lhs, int rhs) noexcept
Get an indentation at increased depth.
Definition indent.hpp:72
constexpr indent(int spaces=4, char space=' ') noexcept
Constructor This constructor will start indentation at depth 0.
Definition indent.hpp:22