• Oliver Sander's avatar
    Merge branch 'feature/introduce-static-indices' into 'master' · 88cfef67
    Oliver Sander authored
    Introduce static indices _0, _1, _2 as shortcuts for std::integral_constant<std::size_t,0> etc.
    
    These indices have existed in dune-typetree for a while.  They are already used extensively
    in dune-typetree and dune-functions, and they also make working with MultiTypeBlockVector/Matrix
    from dune-istl much nicer.  They work very much like std::placeholders:_1, std::placeholders::_2,
    etc.  We would have like to use that, but there is no std::placeholders_0.
        
    This patch also introduces
        
        template<std::size_t i>
        using index_constant = std::integral_constant<std::size_t, i>;
        
    which helps decrease code verbosity a little bit.
    
    
    See merge request !44
    88cfef67
Name
Last commit
Last update
am Loading commit data...
bin Loading commit data...
cmake Loading commit data...
doc Loading commit data...
dune Loading commit data...
lib Loading commit data...
m4 Loading commit data...
share Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
LICENSE.md Loading commit data...
Makefile.am Loading commit data...
README.SVN Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
config.h.cmake Loading commit data...
configure.ac Loading commit data...
dune-common.pc.in Loading commit data...
dune.module Loading commit data...
stamp-vc Loading commit data...