3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Namespaces | Functions | Variables
test_isvalid.cc File Reference
#include <config.h>
#include <iostream>
#include <dumux/common/typetraits/isvalid.hh>

Classes

struct  Dumux::Test::MyVector
 
struct  Dumux::Test::MyOtherVector
 

Namespaces

namespace  Dumux
 make the local view function available whenever we use the grid geometry
 
namespace  Dumux::Test
 

Functions

template<class Vector , typename std::enable_if_t< decltype(hasResize.template check< Vector >())::value, int > = 0>
void Dumux::Test::resize (const Vector &v, std::size_t size)
 
template<class Vector >
auto Dumux::Test::resize2 (const Vector &v, std::size_t size) -> typename std::enable_if_t< decltype(hasResize(v))::value, void >
 
int main (int argc, char *argv[])
 

Variables

const auto Dumux::Test::hasResize = isValid([](auto&& a) -> decltype(a.resize(std::size_t(1))) { })
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Include dependency graph for test_isvalid.cc: