• Mark Olesen's avatar
    ENH: additional contiguous traits (#1378) · 1d79c045
    Mark Olesen authored
    - change contiguous from a series of global functions to separate
      templated traits classes:
        - is_contiguous
        - is_contiguous_label
        - is_contiguous_scalar
      The static constexpr 'value' and a constexpr conversion operator
      allow use in template expressions.  The change also makes it much
      easier to define general traits and to inherit from them.
      The is_contiguous_label and is_contiguous_scalar are special traits
      for handling data of homogeneous components of the respective types.
triad.H 5.3 KB