ORNL / cpp-proposals-pub

Collaborating on papers for the ISO C++ committee - public repo
26 stars 27 forks source link

P0009 subspan wording #33

Closed crtrott closed 6 years ago

crtrott commented 6 years ago

Not quite done yet:

  // [mdspan.subspan], subspan creation
  template<class ElementType, class Extents, class LayoutPolicy,
           class Accessor, class... SliceSpecifiers>
    basic_mdspan<ElementType, E /* see-below */, layout_stride, Accessor>
      subspan(const basic_mdspan<ElementType, Extents, LayoutPolicy, Accessor>& src, SliceSpecifiers ... slices) noexcept;
mhoemmen commented 6 years ago

@crtrott It looks like this isn't in the paper yet -- should I add this, or wait for a PR?

crtrott commented 6 years ago

No this isn't done yet. We need to finish this definition first. Its kind of complicated ;-)

crtrott commented 6 years ago

Check whether this is postcondition or return clause.

crtrott commented 6 years ago

Closing this for now. We got a working definition committed.