std.cfg: Add support for std::vector::swap() and std::swap() (#1700)

References:
https://en.cppreference.com/w/cpp/container/vector/swap
https://en.cppreference.com/w/cpp/algorithm/swap
This commit is contained in:
Sebastian 2019-02-26 18:21:17 +01:00 committed by GitHub
parent 21c22d0d4d
commit 13b37631a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -6263,6 +6263,26 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<not-uninit/>
</arg>
</function>
<!-- https://en.cppreference.com/w/cpp/container/vector/swap -->
<!-- void std::vector::swap( vector& other ); -->
<function name="std::vector::swap">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<!-- https://en.cppreference.com/w/cpp/algorithm/swap -->
<!-- template< class T > void swap( T& a, T& b ); -->
<!-- template< class T > constexpr void swap( T& a, T& b ) -->
<!-- template< class T2, std::size_t N > void swap( T2 (&a)[N], T2 (&b)[N]) -->
<!-- template< class T2, std::size_t N > constexpr void swap( T2 (&a)[N], T2 (&b)[N]) -->
<function name="std::swap">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1"/>
<arg nr="2"/>
</function>
<function name="std::stack::pop,std::queue::pop">
<noreturn>false</noreturn>
</function>