xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
stringable.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#define __XTD_STD_INTERNAL__
6
#include "
internal/__xtd_std_version.hpp
"
7
#undef __XTD_STD_INTERNAL__
8
#include "
stream_insertable.hpp
"
9
#include "
iformatable.hpp
"
10
#include "
istringable.hpp
"
11
#include "
object.hpp
"
12
#include "
raw_type.hpp
"
13
#include <concepts>
14
#if defined(__xtd__cpp_lib_ranges)
15
#include <ranges>
16
#endif
17
19
namespace
xtd
{
20
// Since Doxygen does not work properly with the C++ concept, the documentation for this concept is declared in xtd/stringable_.hpp
21
template
<
typename
value_t>
22
concept
stringable
=
23
std::derived_from<xtd::raw_type<value_t>,
xtd::object
> ||
24
std::derived_from<xtd::raw_type<value_t>,
xtd::istringable<xtd::raw_type<value_t>
>> ||
25
std::derived_from<xtd::raw_type<value_t>,
xtd::iformatable
> ||
26
std::derived_from<xtd::raw_type<value_t>, std::exception> ||
27
std::is_enum_v<xtd::raw_type<value_t>> ||
28
#if defined(__xtd__cpp_lib_ranges)
29
std::ranges::range<xtd::raw_type<value_t>> ||
30
#endif
31
xtd::stream_insertable<value_t>
;
32
}
__xtd_std_version.hpp
xtd::iformatable
Provides functionality to format the value of an object into a string representation.
Definition
iformatable.hpp:42
xtd::istringable
Provides a way to represent the current object as a string.
Definition
istringable.hpp:26
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
xtd::stream_insertable
Definition
stream_insertable.hpp:13
xtd::stringable
Definition
stringable.hpp:22
iformatable.hpp
Contains xtd::iformatable interface.
istringable.hpp
Contains xtd::istringable interface.
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
raw_type.hpp
Contains xtd::raw_type alias.
stream_insertable.hpp
Contains xtd::stream_insertable concept.
Generated on
for xtd by
Gammasoft
. All rights reserved.