ConditionalStorage.hpp File Reference
#include <stdexcept>
#include <utility>
Include dependency graph for ConditionalStorage.hpp:
This graph shows which files directly or indirectly include this file:

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 >
 

Namespaces

namespace  Opm
 

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.