Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2215fd0 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:20Z (2 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
master
Children:
806ce18
Parents:
6e93323
git-author:
Dzejrou <dzejrou@…> (2018-04-11 14:43:51)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
Message:

cpp: added operator→ to reverse iterator adaptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/iterator.hpp

    r6e93323 r2215fd0  
    3535#include <memory>
    3636#include <type_traits>
     37#include <utility>
    3738
    3839namespace std
     
    163164            pointer operator->() const
    164165            {
    165                 // TODO: need std::addressof
    166                 return nullptr;
     166                return addressof(operator*());
    167167            }
    168168
Note: See TracChangeset for help on using the changeset viewer.