TRIQS/h5 1.3.0
C++ interface to HDF5
Loading...
Searching...
No Matches
optional.hpp File Reference
#include "../format.hpp"
#include "../group.hpp"
#include "./string.hpp"
#include <optional>
#include <string>

Detailed Description

Provides functions to read/write std::optional objects from/to HDF5.

Definition in file optional.hpp.

Go to the source code of this file.

Classes

struct  h5::hdf5_format_impl< std::optional< T > >
 Specialization of h5::hdf5_format_impl for std::optional. More...
 

Functions

template<typename T >
void h5::h5_read (group g, std::string name, std::optional< T > &opt)
 Read a std::optional from an HDF5 dataset/subgroup.
 
template<typename T >
void h5::h5_write (group g, std::string const &name, std::optional< T > const &opt)
 Write a std::optional to an HDF5 dataset/subgroup (if it is set).