mirror of
https://github.com/Kitware/CMake.git
synced 2025-05-09 14:57:08 +08:00

``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
27 lines
589 B
C++
27 lines
589 B
C++
// -*-c++-*-
|
|
// vim: set ft=cpp:
|
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include <iterator> // IWYU pragma: export
|
|
|
|
#include <cm/bits/container_helpers.hxx> // IWYU pragma: export
|
|
|
|
namespace cm {
|
|
|
|
#if __cplusplus >= 201402L || defined(_MSVC_LANG) && _MSVC_LANG >= 201402L
|
|
using std::make_reverse_iterator;
|
|
|
|
#else
|
|
template <class Iter>
|
|
std::reverse_iterator<Iter> make_reverse_iterator(Iter it)
|
|
{
|
|
return std::reverse_iterator<Iter>(it);
|
|
}
|
|
|
|
#endif
|
|
|
|
} // namespace cm
|