esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
4namespace ndnph {
5namespace detail {
6
8template<typename T>
10public:
12 : m_item(item) {}
13
14 T* operator->() const {
15 return &m_item;
16 }
17
18private:
19 T m_item;
20};
21
22} // namespace detail
23} // namespace ndnph
24
25#endif // NDNPH_CORE_INPUT_ITERATOR_POINTER_PROXY_HPP
Wrap a value to appear as InputIterator::pointer.
Definition input-iterator-pointer-proxy.hpp:9
InputIteratorPointerProxy(T &&item)
Definition input-iterator-pointer-proxy.hpp:11
T * operator->() const
Definition input-iterator-pointer-proxy.hpp:14
Definition fs.hpp:33