xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd
post_decrementable
xtd::post_decrementable< type_t > Struct Template Reference
﹡ libraries
»
xtd.core
|
system
»
concepts
Definition
template<typename type_t>
struct xtd::post_decrementable< type_t >
Represents the post decrementable concept.
Definition
template
<
typename
type_t>
concept
xtd::post_decrementable
=
requires
(
xtd::raw_type<type_t>
&
a
) {{
a
--} -> std::same_as<xtd::raw_type<type_t>>;}
xtd::post_decrementable
Definition
post_decrementable.hpp:12
xtd::raw_type
std::remove_cvref_t< value_t > raw_type
Represents a raw type alias equivalent to std::remove_cvref_t<value_t>.
Definition
raw_type.hpp:25
xtd::console_key::a
@ a
The A key.
Definition
console_key.hpp:88
Header
#include <xtd/post_decrementable>
Namespace
xtd
Library
xtd.core
Examples
The following code shows how to use
xtd::post_decrementable
concept
#include <xtd/xtd>
auto
print_is_post_decrementable(
auto
value)
noexcept
{
println
(
"{} ({}) {} post_decrementable"
, value, type_of(value),
post_decrementable
<
decltype
(value)> ?
"is"
:
"is not"
);
}
auto
main() ->
int
{
print_is_post_decrementable(42);
print_is_post_decrementable(
time_span
{1, 2, 3});
print_is_post_decrementable(version {1, 2, 3});
}
// This code produces the following output :
//
// 42 (int) is post_decrementable
// 01:02:03 (xtd::time_span) is post_decrementable
// 1.2.3 (xtd::version) is not post_decrementable
xtd::time_span
Represents a time interval.
Definition
time_span.hpp:29
xtd::println
auto println(FILE *file) -> void
Writes the current line terminator to the file output stream using the specified format information.
Definition
println.hpp:14
The documentation for this struct was generated from the following file:
xtd.core/include/xtd/
post_decrementable_.hpp
Generated on
for xtd by
Gammasoft
. All rights reserved.