File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change 878
878
\begin {itemdescr }
879
879
\pnum
880
880
\mandates
881
- \tcode {T} is an implicit-lifetime type\iref {basic.types.general }.
881
+ \tcode {T} is an implicit-lifetime type\iref {basic.types.general }
882
+ and not an incomplete type\iref {term.incomplete.type }.
882
883
883
884
\pnum
884
885
\expects
927
928
\end {itemdecl }
928
929
929
930
\begin {itemdescr }
931
+ \pnum
932
+ \mandates
933
+ \tcode {T} is a complete type.
934
+
930
935
\pnum
931
936
\expects
932
- \tcode {n > 0} is \tcode {true}.
937
+ \tcode {p} is suitably aligned for an array of \tcode {T} or is null.
938
+ \tcode {n <= size_t(-1) / sizeof(T)} is \tcode {true}.
939
+ If \tcode {n > 0} is \tcode {true},
940
+ \range {(char*)p}{(char*)p + (n * sizeof(T))} denotes
941
+ a region of allocated storage that is
942
+ a subset of the region of storage
943
+ reachable through\iref {basic.compound } \tcode {p}.
933
944
934
945
\pnum
935
946
\effects
936
- Equivalent to:
937
- \tcode {return *start_lifetime_as<U>(p);}
947
+ If \tcode {n > 0} is \tcode {true},
948
+ equivalent to
949
+ \tcode {start_lifetime_as<U>(p)}
938
950
where \tcode {U} is the type `` array of \tcode {n} \tcode {T}'' .
951
+ Otherwise, there are no effects.
952
+
953
+ \pnum
954
+ \returns
955
+ A pointer to the first element of the array,
956
+ if any;
957
+ otherwise,
958
+ a pointer that compares equal to \tcode {p}\iref {expr.eq }.
939
959
\end {itemdescr }
940
960
941
961
\rSec 2[allocator.tag]{Allocator argument tag}
You can’t perform that action at this time.
0 commit comments