Better variable naming consistency in STL containers
This commit is contained in:
parent
b51f32a915
commit
fdca8e9829
6 changed files with 15 additions and 15 deletions
|
|
@ -130,11 +130,11 @@ int size_as_int(std::size_t sz) {
|
|||
throw std::out_of_range("vector index out of range");
|
||||
}
|
||||
|
||||
value_type doSet(int i, const value_type& val) throw (std::out_of_range) {
|
||||
value_type doSet(int i, const value_type& value) throw (std::out_of_range) {
|
||||
const int size = size_as_int(self->size());
|
||||
if (i>=0 && i<size) {
|
||||
CTYPE const old_value = (*self)[i];
|
||||
(*self)[i] = val;
|
||||
(*self)[i] = value;
|
||||
return old_value;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue