include
cras_cpp_common
expected.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// SPDX-License-Identifier: BSD-3-Clause
4
// SPDX-FileCopyrightText: Czech Technical University in Prague
5
14
#include <cras_cpp_common/external/tl/expected.hpp>
15
16
namespace
cras
17
{
18
using ::tl::bad_expected_access;
19
using ::tl::expected;
20
using ::tl::in_place;
21
using ::tl::make_unexpected;
22
using ::tl::unexpect;
23
using ::tl::unexpected;
24
}
25
26
#include <type_traits>
27
28
namespace
cras
29
{
34
template
<
typename
T>
35
struct
is_cras_expected
:
public
::std::false_type {};
36
42
template
<
typename
T,
typename
E>
43
struct
is_cras_expected
<::cras::expected<T, E>> :
public
::std::true_type {};
44
}
cras
Definition:
any.hpp:15
cras::is_cras_expected
Type trait determining whether type T is cras::expected or not.
Definition:
expected.hpp:35
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Dec 14 2024 03:51:04