UFO
1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
proxy_arrow_result.hpp
1
41
#ifndef UFO_UTILITY_PROXY_ARROW_RESULT_HPP
42
#define UFO_UTILITY_PROXY_ARROW_RESULT_HPP
43
44
// STL
45
#include <utility>
46
47
namespace
ufo
48
{
49
template
<
class
T>
50
struct
proxy_arrow_result
{
51
proxy_arrow_result
(T
const
& value)
noexcept
(
noexcept
(T(value))) : value_(value) {}
52
53
proxy_arrow_result
(T&& value)
noexcept
(
noexcept
(T(std::move(value))))
54
: value_(std::move(value))
55
{
56
}
57
58
constexpr
T* operator->()
noexcept
{
return
&value_; }
59
60
constexpr
T
const
* operator->()
const
noexcept
{
return
&value_; }
61
62
private
:
63
T value_;
64
};
65
}
// namespace ufo
66
67
#endif
// UFO_UTILITY_PROXY_ARROW_RESULT_HPP
ufo
All vision-related classes and functions.
Definition
cloud.hpp:49
ufo::proxy_arrow_result
Definition
proxy_arrow_result.hpp:50
lib
utility
include
ufo
utility
proxy_arrow_result.hpp
Generated by
1.9.8