esp8266ndn
NDN Arduino library for ESP8266 and more
Loading...
Searching...
No Matches
NDNph
src
ndnph
core
input-iterator-pointer-proxy.hpp
Go to the documentation of this file.
1
#ifndef NDNPH_CORE_INPUT_ITERATOR_POINTER_PROXY_HPP
2
#define NDNPH_CORE_INPUT_ITERATOR_POINTER_PROXY_HPP
3
4
namespace
ndnph
{
5
namespace
detail {
6
8
template
<
typename
T>
9
class
InputIteratorPointerProxy
{
10
public
:
11
InputIteratorPointerProxy
(T&& item)
12
: m_item(item) {}
13
14
T*
operator->
()
const
{
15
return
&m_item;
16
}
17
18
private
:
19
T m_item;
20
};
21
22
}
// namespace detail
23
}
// namespace ndnph
24
25
#endif
// NDNPH_CORE_INPUT_ITERATOR_POINTER_PROXY_HPP
ndnph::detail::InputIteratorPointerProxy
Wrap a value to appear as InputIterator::pointer.
Definition
input-iterator-pointer-proxy.hpp:9
ndnph::detail::InputIteratorPointerProxy::InputIteratorPointerProxy
InputIteratorPointerProxy(T &&item)
Definition
input-iterator-pointer-proxy.hpp:11
ndnph::detail::InputIteratorPointerProxy::operator->
T * operator->() const
Definition
input-iterator-pointer-proxy.hpp:14
ndnph
Definition
fs.hpp:33
Generated by
1.9.8