std.cfg: Add std::next() and std::prev() (#2022)

Reference:
https://en.cppreference.com/w/cpp/iterator/next
https://en.cppreference.com/w/cpp/iterator/prev
This commit is contained in:
Sebastian 2019-07-25 12:40:15 +02:00 committed by GitHub
parent b3e9724c06
commit 2d5f3ae3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -7514,6 +7514,28 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<not-uninit/>
</arg>
</function>
<!-- template< class ForwardIt > ForwardIt std::next(ForwardIt it, typename std::iterator_traits<ForwardIt>::difference_type n = 1 ); // since C++11 until C++17 -->
<!-- template< class InputIt > constexpr InputIt std::next(InputIt it, typename std::iterator_traits<InputIt>::difference_type n = 1 ); // since C++17 -->
<!-- TODO: Specify return value type and iterator type for first argument when this is supported for such types -->
<function name="std::next">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1"/>
<arg nr="2" direction="in" default="1">
<not-uninit/>
</arg>
</function>
<!-- template< class BidirIt > BidirIt std::prev(BidirIt it, typename std::iterator_traits<BidirIt>::difference_type n = 1 ); // since C++11 until C++17 -->
<!-- template< class BidirIt > constexpr BidirIt std::prev(BidirIt it, typename std::iterator_traits<BidirIt>::difference_type n = 1 ); // since C++17 -->
<!-- TODO: Specify return value type and iterator type for first argument when this is supported for such types -->
<function name="std::prev">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1"/>
<arg nr="2" direction="in" default="1">
<not-uninit/>
</arg>
</function>
<memory>
<alloc init="false" buffer-size="malloc">malloc</alloc>
<alloc init="true" buffer-size="calloc">calloc</alloc>