My Project
ConditionalStorage.hpp File Reference

A simple class which only stores a given member attribute if a boolean condition is true. More...

#include <stdexcept>
#include <utility>

Go to the source code of this file.

Classes

class  Opm::ConditionalStorage< cond, T >
 A simple class which only stores a given member attribute if a boolean condition is true. More...
 
class  Opm::ConditionalStorage< false, T >
 

Detailed Description

A simple class which only stores a given member attribute if a boolean condition is true.

If the condition is false, nothing is stored and an exception is thrown when trying to access the object.