mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Cleanup (#1039)
This commit is contained in:
parent
acc0b4bb89
commit
4e4f7ddbb1
@ -236,8 +236,8 @@ namespace etl
|
||||
while (nbits != 0)
|
||||
{
|
||||
unsigned char mask_width = static_cast<unsigned char>(etl::min(nbits, bits_available_in_char));
|
||||
|
||||
typedef typename etl::make_unsigned<T>::type chunk_t;
|
||||
|
||||
typedef typename etl::make_unsigned<T>::type chunk_t;
|
||||
chunk_t chunk = get_chunk(mask_width);
|
||||
|
||||
nbits -= mask_width;
|
||||
@ -529,7 +529,7 @@ namespace etl
|
||||
|
||||
typedef char value_type;
|
||||
typedef value_type* iterator;
|
||||
typedef const value_type* const_iterator;
|
||||
typedef const value_type* const_iterator;
|
||||
typedef etl::span<value_type> callback_parameter_type;
|
||||
typedef etl::delegate<void(callback_parameter_type)> callback_type;
|
||||
|
||||
|
||||
@ -351,11 +351,7 @@ namespace etl
|
||||
}
|
||||
|
||||
p_previous = p_link;
|
||||
|
||||
if (p_link != ETL_NULLPTR)
|
||||
{
|
||||
p_link = p_link->link_type::etl_next;
|
||||
}
|
||||
p_link = p_link->link_type::etl_next;
|
||||
}
|
||||
|
||||
return ETL_NULLPTR;
|
||||
|
||||
@ -66,11 +66,11 @@ namespace etl
|
||||
//***********************************
|
||||
template <typename TDelegate, typename TReturn, typename TParam>
|
||||
struct call_if_impl
|
||||
{
|
||||
{
|
||||
etl::optional<TReturn> call_if(TParam param)
|
||||
{
|
||||
TDelegate& d = static_cast<TDelegate&>(*this);
|
||||
|
||||
TDelegate& d = static_cast<TDelegate&>(*this);
|
||||
|
||||
etl::optional<TReturn> result;
|
||||
|
||||
if (d.is_valid())
|
||||
@ -88,8 +88,8 @@ namespace etl
|
||||
{
|
||||
bool call_if()
|
||||
{
|
||||
TDelegate& d = static_cast<TDelegate&>(*this);
|
||||
|
||||
TDelegate& d = static_cast<TDelegate&>(*this);
|
||||
|
||||
if (d.is_valid())
|
||||
{
|
||||
d();
|
||||
|
||||
@ -47,7 +47,6 @@ SOFTWARE.
|
||||
#include "functional.h"
|
||||
#include "static_assert.h"
|
||||
#include "placement_new.h"
|
||||
#include "algorithm.h"
|
||||
#include "initializer_list.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user