mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-28 21:38:44 +08:00
Merge remote-tracking branch 'origin/development'
This commit is contained in:
commit
08a52159f4
@ -119,7 +119,15 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// Returns the maximum number of items that can be queued.
|
||||
//*************************************************************************
|
||||
size_type max_size() const
|
||||
ETL_CONSTEXPR size_type max_size() const
|
||||
{
|
||||
return CAPACITY;
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// Returns the maximum number of items that can be queued.
|
||||
//*************************************************************************
|
||||
ETL_CONSTEXPR size_type capacity() const
|
||||
{
|
||||
return CAPACITY;
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t capacity() const
|
||||
ETL_CONSTEXPR size_t capacity() const
|
||||
{
|
||||
return MAX_SIZE;
|
||||
}
|
||||
@ -59,7 +59,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t max_size() const
|
||||
ETL_CONSTEXPR size_t max_size() const
|
||||
{
|
||||
return MAX_SIZE;
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t capacity() const
|
||||
ETL_CONSTEXPR size_t capacity() const
|
||||
{
|
||||
return RESERVED - 1;
|
||||
}
|
||||
@ -113,7 +113,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t max_size() const
|
||||
ETL_CONSTEXPR size_t max_size() const
|
||||
{
|
||||
return RESERVED - 1;
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t capacity() const
|
||||
ETL_CONSTEXPR size_t capacity() const
|
||||
{
|
||||
return MAX_SIZE;
|
||||
}
|
||||
@ -139,7 +139,7 @@ namespace etl
|
||||
//*************************************************************************
|
||||
/// How many items can the queue hold.
|
||||
//*************************************************************************
|
||||
size_t max_size() const
|
||||
ETL_CONSTEXPR size_t max_size() const
|
||||
{
|
||||
return MAX_SIZE;
|
||||
}
|
||||
|
||||
@ -37,9 +37,9 @@ SOFTWARE.
|
||||
/// Definitions of the ETL version
|
||||
///\ingroup utilities
|
||||
|
||||
#define ETL_VERSION "11.5.0"
|
||||
#define ETL_VERSION "11.6.0"
|
||||
#define ETL_VERSION_MAJOR 11
|
||||
#define ETL_VERSION_MINOR 5
|
||||
#define ETL_VERSION_MINOR 6
|
||||
#define ETL_VERSION_PATCH 0
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
11.6.0
|
||||
Added capacity() to etl::queue
|
||||
Prefixed max_size() and capacity() with ETL_CONSTEXPR in all queue types.
|
||||
|
||||
===============================================================================
|
||||
11.5.0
|
||||
Added etl::permutations and etl::combinations constant templates.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user