Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
misc/gen/utils.h
Go to the documentation of this file.
1#pragma once
2
3namespace sf
4{
5
12template<typename T>
13void copy_data(T& dest, const T& src) noexcept(true);
14
26template<typename T>
28{
29 public:
34
39 decltype(auto) begin();
40
45 decltype(auto) end();
46
48};
49
50}// namespace sf
51
52// Include all inlined functions and template implementations.
53#include <misc/gen/utils.hpp>
Creates an adapter to reverse iterate over e.g. a std::vector or std::array.
Definition misc/gen/utils.h:28
reverse_adapter(T &container)
Constructor passing a container type.
T & container
Definition misc/gen/utils.h:47
decltype(auto) end()
Required method to allow iteration. It in fact returns the rend() of the container.
decltype(auto) begin()
Required method to allow iteration. It in fact returns the rbegin() of the container.
Definition Application.h:10
void copy_data(T &dest, const T &src) noexcept(true)
Does a binary copy from source to destination data.