Changeset 529ebfb8 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:17Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40f8328
Parents:
aab972f
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-10-15 18:18:58)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:17)
Message:

cpp: added at without bounds checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/array.hpp

    raab972f r529ebfb8  
    121121        }
    122122
    123         // TODO: ref/cref at (with bounds checking), needs exceptions
     123        reference at(size_type idx)
     124        {
     125            // TODO: Bounds checking.
     126            return elems[idx];
     127        }
     128
     129        constexpr const_reference at(size_type idx) const
     130        {
     131            // TODO: Bounds checking.
     132            return elems[idx];
     133        }
    124134
    125135        reference front()
Note: See TracChangeset for help on using the changeset viewer.