Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Carsten Gräser's avatar
    d66ed094
    Add IntegerSequenceEntry and integerSequenceEntry · d66ed094
    Carsten Gräser authored
    The traits class IntegerSequenceEntry computes the i-th entry
    of an std::integer_sequence. The integerSequenceEntry helper
    function does the same with function syntax.
    
    This allows to avoid the hight template instantiation depth
    of std::make_tuple when using the "natural" implementation
    
      std::get<index>(std::make_tuple(t...))
    
    The letter adds 15 instantiation levels per argument whereas
    the still recursive implementation in this commit adds only one.
    d66ed094
    History
    Add IntegerSequenceEntry and integerSequenceEntry
    Carsten Gräser authored
    The traits class IntegerSequenceEntry computes the i-th entry
    of an std::integer_sequence. The integerSequenceEntry helper
    function does the same with function syntax.
    
    This allows to avoid the hight template instantiation depth
    of std::make_tuple when using the "natural" implementation
    
      std::get<index>(std::make_tuple(t...))
    
    The letter adds 15 instantiation levels per argument whereas
    the still recursive implementation in this commit adds only one.