CppCommon  1.0.4.1
C++ Common Library
directory_iterator.inl
Go to the documentation of this file.
1 
9 namespace CppCommon {
10 
11 inline bool operator==(const DirectoryIterator& it1, const DirectoryIterator& it2) noexcept
12 {
13  return it1._current == it2._current;
14 }
15 
16 inline bool operator!=(const DirectoryIterator& it1, const DirectoryIterator& it2) noexcept
17 {
18  return it1._current != it2._current;
19 }
20 
21 inline const Path& DirectoryIterator::operator*() const noexcept
22 {
23  return _current;
24 }
25 
26 inline const Path* DirectoryIterator::operator->() const noexcept
27 {
28  return &_current;
29 }
30 
31 inline void DirectoryIterator::swap(DirectoryIterator& it) noexcept
32 {
33  using std::swap;
34  _pimpl.swap(it._pimpl);
35 }
36 
37 inline void swap(DirectoryIterator& it1, DirectoryIterator& it2) noexcept
38 {
39  it1.swap(it2);
40 }
41 
42 } // namespace CppCommon
Filesystem directory iterator.
const Path * operator->() const noexcept
const Path & operator*() const noexcept
void swap(DirectoryIterator &it) noexcept
Swap two instances.
Filesystem path.
Definition: path.h:90
C++ Common project definitions.
Definition: token_bucket.h:15
void swap(DirectoryIterator &it1, DirectoryIterator &it2) noexcept
bool operator==(const uint128_t &value1, const uint128_t &value2) noexcept
Definition: uint128.inl:115
bool operator!=(const uint128_t &value1, const uint128_t &value2) noexcept
Definition: uint128.inl:120
void swap(FileCache &cache1, FileCache &cache2) noexcept
Definition: filecache.inl:23