Skip to content

Commit

Permalink
Explain the purpose of values_save and values_load
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sparus committed Aug 27, 2024
1 parent 6a8f10f commit 864aafa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions immer/extra/persist/detail/common/pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

namespace immer::persist::detail {

/**
* This type is used in container-specific pools to refer to the actual data
* from the leaf nodes. The values are serialized as a list.
*/
template <class T>
struct values_save
{
Expand All @@ -19,6 +23,10 @@ struct values_save
const values_save& right) = default;
};

/**
* This type is used in container-specific pools to contain the actual data for
* the leaf nodes. The values are deserialized from a list.
*/
template <class T>
struct values_load
{
Expand Down

0 comments on commit 864aafa

Please sign in to comment.