Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Public Types | List of all members
Morpheus::UnaryContainer< ContainerType, TypeSet > Struct Template Reference

A wrapper that constructs a new container type from ContainerType using as arguments the types in TypeSet. More...

#include <Morpheus_ContainerFactory.hpp>

Public Types

using proxy = typename Impl::UnaryContainerProxy< ContainerType, TypeSet >
 
using type = typename proxy::type
 
using value_type = typename proxy::value_type
 
using index_type = typename proxy::index_type
 
using array_layout = typename proxy::array_layout
 
using backend = typename proxy::backend
 

Detailed Description

template<typename ContainerType, typename TypeSet>
struct Morpheus::UnaryContainer< ContainerType, TypeSet >

A wrapper that constructs a new container type from ContainerType using as arguments the types in TypeSet.

Overview
A wrapper that constructs a container type from a set of Type parameters. In the case where a template argument is passed as a Default this is ignored and not passed in the definition of the type.
Template Parameters
ContainerTypeThe container type from which the new type will be generated from.
TypeSetA Set of types.
Example
#include <Morpheus_Core.hpp>
int main(){
using D = Morpheus::Default; // Short-hand for default tag
std::cout << std::is_same<Container, res>::value << std::endl; // prints 1
}
The DenseVector container is a one-dimensional container that contains contiguous elements....
Definition: Morpheus_DenseVector.hpp:83
A Default tag is used to denote the use of default types.
Definition: Morpheus_ContainerFactory.hpp:44
Compile-time set.
Definition: Morpheus_Metaprogramming.hpp:57
A wrapper that constructs a new container type from ContainerType using as arguments the types in Typ...
Definition: Morpheus_ContainerFactory.hpp:125

The documentation for this struct was generated from the following file: