🎨 fixed indentation

This commit is contained in:
Niels Lohmann 2019-03-28 14:23:26 +01:00
parent 23635704c3
commit d21d298397
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 97 additions and 95 deletions

View file

@ -16,7 +16,8 @@ template <typename It>
struct iterator_types < struct iterator_types <
It, It,
void_t<typename It::difference_type, typename It::value_type, typename It::pointer, void_t<typename It::difference_type, typename It::value_type, typename It::pointer,
typename It::reference, typename It::iterator_category>> { typename It::reference, typename It::iterator_category >>
{
using difference_type = typename It::difference_type; using difference_type = typename It::difference_type;
using value_type = typename It::value_type; using value_type = typename It::value_type;
using pointer = typename It::pointer; using pointer = typename It::pointer;
@ -38,7 +39,8 @@ struct iterator_traits<T, enable_if_t<!std::is_pointer<T>::value>>
}; };
template <typename T> template <typename T>
struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>> { struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
{
using iterator_category = std::random_access_iterator_tag; using iterator_category = std::random_access_iterator_tag;
using value_type = T; using value_type = T;
using difference_type = ptrdiff_t; using difference_type = ptrdiff_t;