Add missing parameter names in STL container wrappers
Mostly in STL copy constructors. Best to have parameter names as they make their way into the wrappers in some target languages.
This commit is contained in:
parent
8c207dd3a9
commit
6d0c495fd0
49 changed files with 72 additions and 74 deletions
|
|
@ -31,9 +31,9 @@ namespace std
|
|||
|
||||
allocator() throw();
|
||||
|
||||
allocator(const allocator&) throw();
|
||||
allocator(const allocator& other) throw();
|
||||
template<typename _Tp1>
|
||||
allocator(const allocator<_Tp1>&) throw();
|
||||
allocator(const allocator<_Tp1>& other) throw();
|
||||
~allocator() throw();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
%define %std_container_methods_non_resizable(container...)
|
||||
|
||||
container();
|
||||
container(const container&);
|
||||
container(const container& other);
|
||||
|
||||
bool empty() const;
|
||||
size_type size() const;
|
||||
|
|
|
|||
|
|
@ -153,10 +153,10 @@ namespace std {
|
|||
|
||||
//50. Copy constructor and assignment operator of ios_base
|
||||
private:
|
||||
ios_base(const ios_base&);
|
||||
ios_base(const ios_base& other);
|
||||
|
||||
ios_base&
|
||||
operator=(const ios_base&);
|
||||
operator=(const ios_base& other);
|
||||
};
|
||||
|
||||
template<typename _CharT, typename _Traits = char_traits<_CharT> >
|
||||
|
|
@ -242,10 +242,10 @@ namespace std {
|
|||
// 27.4.5.1 basic_ios constructors
|
||||
basic_ios();
|
||||
private:
|
||||
basic_ios(const basic_ios&);
|
||||
basic_ios(const basic_ios& other);
|
||||
|
||||
basic_ios&
|
||||
operator=(const basic_ios&);
|
||||
operator=(const basic_ios& other);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -306,15 +306,15 @@ namespace std
|
|||
|
||||
template<typename _CharT, typename _Traits = char_traits<_CharT> >
|
||||
std::basic_ostream<_CharT, _Traits>&
|
||||
endl(std::basic_ostream<_CharT, _Traits>&);
|
||||
endl(std::basic_ostream<_CharT, _Traits>& value);
|
||||
|
||||
template<typename _CharT, typename _Traits = char_traits<_CharT> >
|
||||
std::basic_ostream<_CharT, _Traits>&
|
||||
ends(std::basic_ostream<_CharT, _Traits>&);
|
||||
ends(std::basic_ostream<_CharT, _Traits>& value);
|
||||
|
||||
template<typename _CharT, typename _Traits = char_traits<_CharT> >
|
||||
std::basic_ostream<_CharT, _Traits>&
|
||||
flush(std::basic_ostream<_CharT, _Traits>&);
|
||||
flush(std::basic_ostream<_CharT, _Traits>& value);
|
||||
}
|
||||
|
||||
namespace std {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ namespace std {
|
|||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MAP, std::map< _Key, _Tp, _Compare, _Alloc >);
|
||||
|
||||
map( const _Compare& );
|
||||
map(const _Compare& other);
|
||||
|
||||
#ifdef %swig_map_methods
|
||||
// Add swig/language extra methods
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace std {
|
|||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MULTIMAP, std::multimap< _Key, _Tp, _Compare, _Alloc >);
|
||||
|
||||
multimap( const _Compare& );
|
||||
multimap(const _Compare& other);
|
||||
|
||||
#ifdef %swig_multimap_methods
|
||||
// Add swig/language extra methods
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace std {
|
|||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MULTISET, std::multiset< _Key, _Compare, _Alloc >);
|
||||
|
||||
multiset( const _Compare& );
|
||||
multiset(const _Compare& other);
|
||||
|
||||
#ifdef %swig_multiset_methods
|
||||
// Add swig/language extra methods
|
||||
|
|
|
|||
|
|
@ -13,14 +13,14 @@
|
|||
|
||||
%define %std_queue_methods(queue...)
|
||||
queue();
|
||||
queue( const _Sequence& );
|
||||
queue(const _Sequence& other);
|
||||
|
||||
bool empty() const;
|
||||
size_type size() const;
|
||||
const value_type& front() const;
|
||||
const value_type& back() const;
|
||||
void pop();
|
||||
void push( const value_type& );
|
||||
void push(const value_type& value);
|
||||
%enddef
|
||||
|
||||
%define %std_queue_methods_val(queue...)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// Set
|
||||
%define %std_set_methods_common(set...)
|
||||
set();
|
||||
set( const set& );
|
||||
set(const set& other);
|
||||
|
||||
bool empty() const;
|
||||
size_type size() const;
|
||||
|
|
@ -110,7 +110,7 @@ namespace std {
|
|||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_SET, std::set< _Key, _Compare, _Alloc >);
|
||||
|
||||
set( const _Compare& );
|
||||
set(const _Compare& other);
|
||||
|
||||
#ifdef %swig_set_methods
|
||||
// Add swig/language extra methods
|
||||
|
|
|
|||
|
|
@ -13,13 +13,13 @@
|
|||
|
||||
%define %std_stack_methods(stack...)
|
||||
stack();
|
||||
stack( const _Sequence& );
|
||||
stack(const _Sequence& other);
|
||||
|
||||
bool empty() const;
|
||||
size_type size() const;
|
||||
const value_type& top() const;
|
||||
void pop();
|
||||
void push( const value_type& );
|
||||
void push(const value_type& value);
|
||||
%enddef
|
||||
|
||||
%define %std_stack_methods_val(stack...)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ namespace std {
|
|||
basic_streambuf();
|
||||
|
||||
private:
|
||||
basic_streambuf(const basic_streambuf&);
|
||||
basic_streambuf(const basic_streambuf& other);
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// Unordered Set
|
||||
%define %std_unordered_set_methods_common(unordered_set...)
|
||||
unordered_set();
|
||||
unordered_set( const unordered_set& );
|
||||
unordered_set(const unordered_set& other);
|
||||
|
||||
bool empty() const;
|
||||
size_type size() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue