Files
flat.hpp/headers/flat.hpp/detail/iter_traits.hpp
2022-12-29 01:16:54 +07:00

23 lines
836 B
C++

/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/flat.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#pragma once
#include <iterator>
#include <type_traits>
namespace flat_hpp::detail
{
template < typename InputIter >
using iter_value_type = typename std::iterator_traits<InputIter>::value_type;
template < typename InputIter >
using iter_key_type = std::remove_const_t<typename iter_value_type<InputIter>::first_type>;
template < typename InputIter >
using iter_mapped_type = typename iter_value_type<InputIter>::second_type;
}