mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added conditional compile directives for C++11
This commit is contained in:
parent
9266920e2a
commit
338164d871
@ -417,6 +417,7 @@ namespace etl
|
||||
::new (p) T(value);
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*****************************************************************************
|
||||
/// Copy construct an item at address p.
|
||||
///\ingroup memory
|
||||
@ -426,6 +427,7 @@ namespace etl
|
||||
{
|
||||
::new (p) T(std::move(value));
|
||||
}
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
/// Copy construct an item at address p.
|
||||
@ -472,6 +474,7 @@ namespace etl
|
||||
return *reinterpret_cast<T*>(p);
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*****************************************************************************
|
||||
/// Construct an item at address p.
|
||||
///\ingroup memory
|
||||
@ -482,6 +485,7 @@ namespace etl
|
||||
::new (p) T(std::move(other));
|
||||
return *reinterpret_cast<T*>(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
/// Construct an item at address p.
|
||||
|
||||
@ -413,6 +413,7 @@ namespace etl
|
||||
create_back(value);
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*********************************************************************
|
||||
/// Inserts a value at the end of the vector.
|
||||
/// If asserts or exceptions are enabled, emits vector_full if the vector is already full.
|
||||
@ -425,6 +426,7 @@ namespace etl
|
||||
#endif
|
||||
create_back(std::move(value));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ETL_CPP11_SUPPORTED && !defined(ETL_STLPORT) && !defined(ETL_NO_STL) && !ETL_VECTOR_FORCE_CPP03
|
||||
//*********************************************************************
|
||||
@ -544,6 +546,7 @@ namespace etl
|
||||
return position;
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*********************************************************************
|
||||
/// Inserts a value to the vector.
|
||||
/// If asserts or exceptions are enabled, emits vector_full if the vector is already full.
|
||||
@ -567,6 +570,7 @@ namespace etl
|
||||
|
||||
return position;
|
||||
}
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Emplaces a value to the vextor at the specified position.
|
||||
@ -965,6 +969,7 @@ namespace etl
|
||||
++p_end;
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*********************************************************************
|
||||
/// Create a new element with a value at the back
|
||||
//*********************************************************************
|
||||
@ -975,6 +980,7 @@ namespace etl
|
||||
|
||||
++p_end;
|
||||
}
|
||||
#endif
|
||||
|
||||
//*********************************************************************
|
||||
/// Destroy an element at the back.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user