Iros
Loading...
Searching...
No Matches
in_found_result.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/operations.h
"
4
#include "
di/util/move.h
"
5
6
namespace
di::container
{
7
template
<
typename
It>
8
struct
InFoundResult
{
9
template
<
typename
I>
10
requires
(
concepts::ConvertibleTo<It const&, I>
)
11
constexpr
operator
InFoundResult<I>
()
const
& {
12
return
{
in
,
found
};
13
}
14
15
template
<
typename
I>
16
requires
(
concepts::ConvertibleTo<It, I>
)
17
constexpr
operator
InFoundResult<I>
() && {
18
return
{ util::move(
in
),
found
};
19
}
20
21
[[no_unique_address]] It
in
;
22
bool
found
;
23
};
24
}
di::concepts::ConvertibleTo
Definition
operations.h:99
operations.h
di::container
Definition
sequence.h:12
di::container::InFoundResult
Definition
in_found_result.h:8
di::container::InFoundResult::in
It in
Definition
in_found_result.h:21
di::container::InFoundResult::found
bool found
Definition
in_found_result.h:22
move.h
libs
di
include
di
container
algorithm
in_found_result.h
Generated by
1.13.0