text: /*****************************************************************************
   * \file
   * \brief TODO: Add description
   *****************************************************************************/
  
  /*
    The MIT License (MIT)
  
    CppBits Core Library.
    https://github.com/cppbits/Core
  
    Copyright (c) 2018 Matthew Rodusek
  
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
  
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
  
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
  */
  #ifndef BIT_CORE_TRAITS_CONCEPTS_INPUT_ITERATOR_HPP
  #define BIT_CORE_TRAITS_CONCEPTS_INPUT_ITERATOR_HPP
  
  #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  # pragma once
  #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  
  #include "is_iterator.hpp"
  
  #include "../composition/void_t.hpp"
  #include "../composition/bool_constant.hpp"
  #include "../composition/conjunction.hpp"
  
  #include <type_traits> // std::declval
  
  namespace bit {
    namespace core {
      namespace detail {
  
        template<typename T, typename = void>
        struct is_input_iterator_impl : false_type{};
  
        template<typename T>
        struct is_input_iterator_impl<
          T,
          void_t<
            decltype( std::declval<T&>() != std::declval<T>() ),
            decltype( std::declval<T&>() == std::declval<T>() ),
            decltype( std::declval<T&>()++ ),
            decltype( *std::declval<T&>()++ )
          >
        > : is_iterator<T>{};
      } // namespace detail
  
      /// \brief Type trait to determine if a given type is an InputIterator
      ///
      /// The result is aliased as \c ::value
      template<typename T>
      struct is_input_iterator : detail::is_input_iterator_impl<std::decay_t<T>>{};
  
      /// \brief Type trait to determine if a series of \c Types are all InputIterators
      ///
      /// \The result is stored in \c ::value
      template<typename...Types>
      struct are_input_iterators : conjunction<is_input_iterator<Types>...>{};
  
    } // namespace core
  } // namespace bit
  
  #endif /* BIT_CORE_TRAITS_CONCEPTS_INPUT_ITERATOR_HPP */
  