ORNL / cpp-proposals-pub

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

LWG 22-04-29 #225

Open crtrott opened 2 years ago

crtrott commented 2 years ago

Accessor

Add Remarks: the expression is equality preserving. (both for a.access and a.offset) [37ae082646]

Front matter: [233a72100553]

An accessor policy defines types 
and operations by which a reference
to a single object is created from an abstract data handle to a number of such objects and an index.
For an accessor policy, a set of indicies `i` for  a given handle `p` for which access produces
valid reference to object, is defined as accesible range `[a, p)`.

q and b instead of p_sub and a_sub [233a721005]

default_accesor

Constructor 1.1 OtherElementType()[], element_type()[] [fce6baeb0bd1cb] 2 Effects equivalent to return p+i; [fce6baeb0bd1cb]

3 Effects equivalent to return p[i] [fce6baeb0bd1cb]

move offset after access in synopsis and definitions [fce6baeb0bd1cb]

crtrott commented 2 years ago

mdspan:

move static functions before constructors [7a5a6ee2aaa35]

mhoemmen commented 2 years ago

Other points from Friday's review: