Skip to content

Commit

Permalink
Naming conventon fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
psiha committed May 28, 2024
1 parent 12f7e72 commit c1e625e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/psi/vm/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ struct header_info
static constexpr header_info make( std::uint8_t const extra_alignment = 1 ) noexcept { return { sizeof( T ), extra_alignment }; }

template <typename AdditionalHeader>
header_info addHeader() const noexcept // support chained headers (class hierarchies)
header_info add_header() const noexcept // support chained headers (class hierarchies)
{
auto const aligned_size{ align_up( this->header_size, alignof( AdditionalHeader ) ) };
return
Expand All @@ -369,7 +369,7 @@ struct header_info
}

template <typename ... T>
header_info withAlignmentFor() const noexcept
header_info with_alignment_for() const noexcept
{
BOOST_ASSUME( data_extra_alignment >= 1 );
return { this->header_size, std::max<std::uint8_t>({ this->data_extra_alignment, alignof( T )... }) };
Expand Down Expand Up @@ -440,8 +440,8 @@ class vector
storage_
(
hdr_info
. addHeader<size_type>()
.template withAlignmentFor<size_type, T>()
. add_header<size_type>()
.template with_alignment_for<size_type, T>()
. final_header_size()
) {}

Expand Down

0 comments on commit c1e625e

Please sign in to comment.