From 0f4cdd7b2fa6dea7004b0f1a7595d84af6c671a4 Mon Sep 17 00:00:00 2001 From: Roberto Martin Fantini Date: Fri, 28 Feb 2025 16:32:55 +0100 Subject: [PATCH] Correct typo --- src/mfast/sequence_type.h | 58 +++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/mfast/sequence_type.h b/src/mfast/sequence_type.h index a27c6ff7..fc56b15e 100644 --- a/src/mfast/sequence_type.h +++ b/src/mfast/sequence_type.h @@ -7,16 +7,16 @@ #include #include "sequence_ref.h" namespace mfast { -template class squence_type_base { +template class sequence_type_base { #ifdef BOOST_NO_RVALUE_REFERENCES - BOOST_MOVABLE_BUT_NOT_COPYABLE(squence_type_base) + BOOST_MOVABLE_BUT_NOT_COPYABLE(sequence_type_base) #endif public: typedef typename CRef::instruction_cptr instruction_cptr; typedef CRef cref_type; typedef typename mref_of::type mref_type; - squence_type_base(mfast::allocator *alloc = nullptr, + sequence_type_base(mfast::allocator *alloc = nullptr, instruction_cptr instruction = 0, value_storage *fields_storage = nullptr); @@ -24,12 +24,12 @@ template class squence_type_base { // associative // container // using emplace() - squence_type_base(std::pair p); - ~squence_type_base(); + sequence_type_base(std::pair p); + ~sequence_type_base(); - squence_type_base(const cref_type &other, mfast::allocator *alloc); + sequence_type_base(const cref_type &other, mfast::allocator *alloc); - squence_type_base(BOOST_RV_REF(squence_type_base) other) + sequence_type_base(BOOST_RV_REF(sequence_type_base) other) : alloc_(other.alloc_), instruction_(other.instruction_) { // g++ 4.7.1 doesn't allow this member function to defined out of class // declaration @@ -37,7 +37,7 @@ template class squence_type_base { other.instruction_ = 0; } - squence_type_base &operator=(BOOST_RV_REF(squence_type_base) other) { + sequence_type_base &operator=(BOOST_RV_REF(sequence_type_base) other) { // g++ 4.7.1 doesn't allow this member function to defined out of class // declaration if (this->instruction()) @@ -77,14 +77,14 @@ template class squence_type_base { value_storage my_storage_; }; -typedef squence_type_base sequence_type; +typedef sequence_type_base sequence_type; /////////////////////////////////////////////////////// template -inline squence_type_base::squence_type_base( +inline sequence_type_base::sequence_type_base( mfast::allocator *alloc, - typename squence_type_base::instruction_cptr instruction, + typename sequence_type_base::instruction_cptr instruction, value_storage *fields_storage) : alloc_(alloc), instruction_(instruction) { if (instruction_) @@ -92,26 +92,26 @@ inline squence_type_base::squence_type_base( } template -inline squence_type_base::squence_type_base( +inline sequence_type_base::sequence_type_base( std::pair::instruction_cptr> p) + typename sequence_type_base::instruction_cptr> p) : alloc_(p.first), instruction_(p.second) { instruction_->construct_value(my_storage_, 0, alloc_, false); } -template inline squence_type_base::~squence_type_base() { +template inline sequence_type_base::~sequence_type_base() { if (alloc_ && this->instruction()) this->instruction()->destruct_value(my_storage_, alloc_); } template -inline typename squence_type_base::instruction_cptr -squence_type_base::instruction() const { +inline typename sequence_type_base::instruction_cptr +sequence_type_base::instruction() const { return instruction_; } template -inline squence_type_base::squence_type_base(const CRef &other, +inline sequence_type_base::sequence_type_base(const CRef &other, mfast::allocator *alloc) : alloc_(alloc), instruction_(other.instruction()) { this->instruction()->copy_construct_value( @@ -119,42 +119,42 @@ inline squence_type_base::squence_type_base(const CRef &other, } template -inline typename squence_type_base::mref_type -squence_type_base::ref() { +inline typename sequence_type_base::mref_type +sequence_type_base::ref() { return mref_type(alloc_, &my_storage_, instruction_); } template -inline typename squence_type_base::mref_type -squence_type_base::mref() { +inline typename sequence_type_base::mref_type +sequence_type_base::mref() { return mref_type(alloc_, &my_storage_, instruction_); } template -inline typename squence_type_base::cref_type -squence_type_base::ref() const { +inline typename sequence_type_base::cref_type +sequence_type_base::ref() const { return cref_type(&my_storage_, instruction_); } template -inline typename squence_type_base::cref_type -squence_type_base::cref() const { +inline typename sequence_type_base::cref_type +sequence_type_base::cref() const { return cref_type(&my_storage_, instruction_); } template -inline const char *squence_type_base::name() const { +inline const char *sequence_type_base::name() const { return instruction_->name(); } template -inline mfast::allocator *squence_type_base::allocator() const { +inline mfast::allocator *sequence_type_base::allocator() const { return this->alloc_; } // template // inline void -// squence_type_base::reset() +// sequence_type_base::reset() // { // my_storage_.of_array.content_ = 0; // my_storage_.of_array.capacity_in_bytes_ = 0; @@ -162,7 +162,7 @@ inline mfast::allocator *squence_type_base::allocator() const { // // template // inline void -// squence_type_base::ensure_valid() +// sequence_type_base::ensure_valid() // { // instruction_->ensure_valid_storage(my_storage_, alloc_); // }