Added is_random_access_iterator and deprecated is_random_iterator

This commit is contained in:
John Wellbelove 2020-12-15 12:36:26 +00:00
parent 45d7186d8a
commit ee8abd915d

View File

@ -628,12 +628,19 @@ namespace etl
static ETL_CONSTANT bool value = etl::is_same<typename etl::iterator_traits<T>::iterator_category, ETL_OR_STD::bidirectional_iterator_tag>::value;
};
// Deprecated
template <typename T>
struct is_random_iterator
{
static ETL_CONSTANT bool value = etl::is_same<typename etl::iterator_traits<T>::iterator_category, ETL_OR_STD::random_access_iterator_tag>::value;
};
template <typename T>
struct is_random_access_iterator
{
static ETL_CONSTANT bool value = etl::is_same<typename etl::iterator_traits<T>::iterator_category, ETL_OR_STD::random_access_iterator_tag>::value;
};
template <typename T>
struct is_input_iterator_concept
{
@ -667,11 +674,18 @@ namespace etl
etl::is_random_iterator<T>::value;
};
// Deprecated
template <typename T>
struct is_random_iterator_concept
{
static ETL_CONSTANT bool value = etl::is_random_iterator<T>::value;
};
template <typename T>
struct is_random_access_iterator_concept
{
static ETL_CONSTANT bool value = etl::is_random_access_iterator<T>::value;
};
}
#endif