Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 12, 2024
1 parent 029ec72 commit d6f0a78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/flatmemory/details/types/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace flatmemory
{
private:
/**
* Helper function to calculate array that contains alignment requirements
* Helper function to calculate an array that contains header alignment requirements
* with additional max overall alignment requirement at the end.
*/
template<size_t... Is>
Expand All @@ -73,6 +73,10 @@ namespace flatmemory
return alignments;
}

/**
* Helper function to calculate an array that contains data alignment requirements
* with additional max overall alignment requirement at the end.
*/
template<size_t... Is>
static consteval std::array<size_t, sizeof...(Ts) + 1> calculate_data_alignments(std::index_sequence<Is...>) {
std::array<size_t, sizeof...(Ts) + 1> alignments{};
Expand Down

0 comments on commit d6f0a78

Please sign in to comment.