Update flat_map.h to handle C++98 compilation (#112)

This commit is contained in:
Bo Rydberg 2019-01-06 19:52:59 +01:00 committed by John Wellbelove
parent 42a385161a
commit 349db3aacd

View File

@ -76,7 +76,9 @@ namespace etl
typedef TKeyCompare key_compare;
typedef value_type& reference;
typedef const value_type& const_reference;
#if ETL_CPP11_SUPPORTED
typedef value_type&& rvalue_reference;
#endif
typedef value_type* pointer;
typedef const value_type* const_pointer;
typedef size_t size_type;
@ -304,6 +306,7 @@ namespace etl
return result;
}
#if ETL_CPP11_SUPPORTED
//*********************************************************************
/// Inserts a value to the flat_map.
/// If asserts or exceptions are enabled, emits flat_map_full if the flat_map is already full.
@ -328,6 +331,7 @@ namespace etl
return result;
}
#endif
//*********************************************************************
/// Inserts a value to the flat_map.
@ -340,6 +344,7 @@ namespace etl
return insert(value).first;
}
#if ETL_CPP11_SUPPORTED
//*********************************************************************
/// Inserts a value to the flat_map.
/// If asserts or exceptions are enabled, emits flat_map_full if the flat_map is already full.
@ -350,6 +355,7 @@ namespace etl
{
return insert(std::move(value)).first;
}
#endif
//*********************************************************************
/// Inserts a range of values to the flat_map.