Also modified operator[] to return a reference to the array element.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D119725
[libc][cpp] Add a constructor to ArrayRef to construct from void * data. ClosedPublic Authored by sivachandra on Feb 14 2022, 7:49 AM.
Details Summary Also modified operator[] to return a reference to the array element.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 14 2022, 8:39 AM Closed by commit rG19b4e9d76ecc: [libc][cpp] Add a constructor to ArrayRef to construct from void * data. (authored by sivachandra). · Explain WhyFeb 14 2022, 9:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 408421 libc/src/__support/CPP/ArrayRef.h
libc/test/src/__support/CPP/arrayref_test.cpp
|