tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
last_spec.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4
#
ifndef
TETL_CHRONO_LAST_SPEC_HPP
5
#
define
TETL_CHRONO_LAST_SPEC_HPP
6
7
namespace
etl
::
chrono
{
8
9
/// \brief last_spec is an empty tag type that is used in conjunction with other
10
/// calendar types to indicate the last thing in a sequence.
11
///
12
/// \details Depending on context, it may indicate the last day of a month (as
13
/// in 2018y/February/last, for last day of February 2018, i.e., 2018-02-28) or
14
/// the last day of the week in a month (as in 2018/February/Sunday[last], for
15
/// last Sunday of February 2018, i.e., 2018-02-25).
16
///
17
/// https://en.cppreference.com/w/cpp/chrono/last_spec
18
///
19
/// \ingroup chrono
20
struct
last_spec
{
21
explicit
last_spec
() =
default
;
22
};
23
24
/// \relates last_spec
25
/// \ingroup chrono
26
inline
constexpr
auto
last
=
last_spec
{
}
;
27
28
}
// namespace etl::chrono
29
30
#
endif
// TETL_CHRONO_LAST_SPEC_HPP
etl::chrono::last_spec::last
constexpr auto last
Definition
last_spec.hpp:26
etl::chrono
Definition
abs.hpp:12
etl
Definition
adjacent_find.hpp:9
etl::chrono::last_spec
last_spec is an empty tag type that is used in conjunction with other calendar types to indicate the ...
Definition
last_spec.hpp:20
etl::chrono::last_spec::last_spec
last_spec()=default
include
etl
_chrono
last_spec.hpp
Generated on Sun Sep 7 2025 19:14:49 for tetl by
1.9.8