Iros
 
Loading...
Searching...
No Matches
min_max_result.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/util/move.h"
5
6namespace di::container {
7template<typename T>
9 template<typename U>
11 constexpr operator MinMaxResult<U>() const& {
12 return { min, max };
13 }
14
15 template<typename U>
17 constexpr operator MinMaxResult<U>() && {
18 return { util::move(min), util::move(max) };
19 }
20
21 [[no_unique_address]] T min;
22 [[no_unique_address]] T max;
23};
24}
Definition operations.h:99
Definition sequence.h:12
Definition min_max_result.h:8
T max
Definition min_max_result.h:22
T min
Definition min_max_result.h:21