mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Removed default Id = 0 template parameter.
This commit is contained in:
parent
a12c95cccf
commit
bbec14b864
@ -129,7 +129,7 @@ namespace etl
|
||||
///\ingroup intrusive_forward_list
|
||||
///\note TLink must be a base of TValue.
|
||||
//***************************************************************************
|
||||
template <typename TValue, typename TLink = etl::forward_link<>, const size_t COUNT_OPTION = etl::count_option::FAST_COUNT >
|
||||
template <typename TValue, typename TLink = etl::forward_link<0>, const size_t COUNT_OPTION = etl::count_option::FAST_COUNT >
|
||||
class intrusive_forward_list
|
||||
{
|
||||
public:
|
||||
|
||||
@ -131,7 +131,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// A forward link.
|
||||
//***************************************************************************
|
||||
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
struct forward_link
|
||||
: public __private_intrusive_links__::forward_link_base<forward_link<ID_, OPTION_>, ID_, OPTION_>
|
||||
{
|
||||
@ -370,7 +370,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// A bidirectional link.
|
||||
//***************************************************************************
|
||||
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
struct bidirectional_link
|
||||
: public __private_intrusive_links__::bidirectional_link_base<bidirectional_link<ID_, OPTION_>, ID_, OPTION_>
|
||||
{
|
||||
@ -683,7 +683,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// A tree link.
|
||||
//***************************************************************************
|
||||
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
|
||||
struct tree_link
|
||||
: public __private_intrusive_links__::tree_link_base<tree_link<ID_, OPTION_>, ID_, OPTION_>
|
||||
{
|
||||
|
||||
@ -133,7 +133,7 @@ namespace etl
|
||||
|
||||
typedef typename parameter_type<TKey>::type key_value_parameter_t;
|
||||
|
||||
typedef etl::forward_link<> link_t; // Default link.
|
||||
typedef etl::forward_link<0> link_t; // Default link.
|
||||
|
||||
// The nodes that store the elements.
|
||||
struct node_t : public link_t
|
||||
|
||||
@ -133,7 +133,7 @@ namespace etl
|
||||
|
||||
typedef typename parameter_type<TKey>::type key_value_parameter_t;
|
||||
|
||||
typedef etl::forward_link<> link_t; // Default link.
|
||||
typedef etl::forward_link<0> link_t; // Default link.
|
||||
|
||||
// The nodes that store the elements.
|
||||
struct node_t : public link_t
|
||||
|
||||
@ -130,7 +130,7 @@ namespace etl
|
||||
|
||||
typedef typename parameter_type<TKey>::type key_value_parameter_t;
|
||||
|
||||
typedef etl::forward_link<> link_t;
|
||||
typedef etl::forward_link<0> link_t;
|
||||
|
||||
// The nodes that store the elements.
|
||||
struct node_t : public link_t
|
||||
|
||||
@ -130,7 +130,7 @@ namespace etl
|
||||
|
||||
typedef typename parameter_type<TKey>::type key_value_parameter_t;
|
||||
|
||||
typedef etl::forward_link<> link_t;
|
||||
typedef etl::forward_link<0> link_t;
|
||||
|
||||
// The nodes that store the elements.
|
||||
struct node_t : public link_t
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user