Iros
Loading...
Searching...
No Matches
cache_last.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/container/meta/container_reference.h
"
4
#include "
di/container/meta/container_rvalue.h
"
5
#include "
di/container/view/all.h
"
6
#include "
di/container/view/cache_last_view.h
"
7
#include "
di/function/pipeable.h
"
8
#include "
di/util/forward.h
"
9
10
namespace
di::container::view
{
11
namespace
detail
{
12
struct
CacheLastFunction
:
public
function::pipeline::EnablePipeline
{
13
template
<concepts::InputContainer Con>
14
constexpr
auto
operator()
(Con&&
container
)
const
->
concepts::View
auto
{
15
return
CacheLastView
{ di::forward<Con>(
container
) };
16
}
17
};
18
}
19
20
constexpr
inline
auto
cache_last
=
detail::CacheLastFunction
{};
21
}
22
23
namespace
di
{
24
using
container::view::cache_last
;
25
}
all.h
cache_last_view.h
di::container::CacheLastView
Definition
cache_last_view.h:32
di::concepts::View
Definition
view.h:10
container_reference.h
container_rvalue.h
forward.h
di::container::view::detail
Definition
adjacent.h:9
di::container::view
Definition
adjacent.h:8
di::container::view::cache_last
constexpr auto cache_last
Definition
cache_last.h:20
di::container
Definition
sequence.h:12
di
Definition
zstring_parser.h:9
pipeable.h
di::container::view::detail::CacheLastFunction
Definition
cache_last.h:12
di::container::view::detail::CacheLastFunction::operator()
constexpr auto operator()(Con &&container) const -> concepts::View auto
Definition
cache_last.h:14
di::function::pipeline::EnablePipeline
Definition
pipeable.h:8
libs
di
include
di
container
view
cache_last.h
Generated by
1.13.0