Skip to content
Snippets Groups Projects
Commit 69133af5 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[cleanup] Also add TypeListElement::type

We should always export ::Type and ::type to follow
the dune convention and the std pattern for type traits.
parent 860d95e6
No related branches found
No related tags found
1 merge request!7Feature/typelist
......@@ -93,14 +93,21 @@ namespace Dune {
*
* \todo Implement without using std::tuple.
*/
using Type = typename std::tuple_element<i, std::tuple<T...>>::type;
using type = typename std::tuple_element<i, std::tuple<T...>>::type;
/**
* \brief Export type of i-th element in TypeList
*
* \todo Implement without using std::tuple.
*/
using Type = type;
};
/**
* \brief Shortcut for TypeListElement<i, T>::Type;
* \brief Shortcut for TypeListElement<i, T>::type;
*/
template<std::size_t i, class T>
using TypeListEntry_t = typename TypeListElement<i, T>::Type;
using TypeListEntry_t = typename TypeListElement<i, T>::type;
} // namespace Dune
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment