|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82180 - sandbox/static_vector/boost/container
From: athundt_at_[hidden]
Date: 2012-12-23 02:04:18
Author: ahundt
Date: 2012-12-23 02:04:17 EST (Sun, 23 Dec 2012)
New Revision: 82180
URL: http://svn.boost.org/trac/boost/changeset/82180
Log:
renamed index checks to be more precise since alternative user implementations may work differently from how the function names describe them working.
Text files modified:
sandbox/static_vector/boost/container/static_vector.hpp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Modified: sandbox/static_vector/boost/container/static_vector.hpp
==============================================================================
--- sandbox/static_vector/boost/container/static_vector.hpp (original)
+++ sandbox/static_vector/boost/container/static_vector.hpp 2012-12-23 02:04:17 EST (Sun, 23 Dec 2012)
@@ -79,7 +79,7 @@
}
template <typename V, std::size_t C, typename S>
- static void check_index_throwing(container::static_vector<V, C, S> const& v,
+ static void check_at(container::static_vector<V, C, S> const& v,
typename container::static_vector<V, C, S>::size_type i)
{
if ( v.size() <= i )
@@ -87,7 +87,7 @@
}
template <typename V, std::size_t C, typename S>
- static void check_index(container::static_vector<V, C, S> const& v,
+ static void check_operator_brackets(container::static_vector<V, C, S> const& v,
typename container::static_vector<V, C, S>::size_type i)
{
BOOST_ASSERT_MSG(i < v.size(), "index out of bounds");
@@ -542,28 +542,28 @@
// strong
Value & at(size_type i)
{
- errh::check_index_throwing(*this, i); // may throw
+ errh::check_at(*this, i); // may throw
return *(this->begin() + i);
}
// strong
Value const& at(size_type i) const
{
- errh::check_index_throwing(*this, i); // may throw
+ errh::check_at(*this, i); // may throw
return *(this->begin() + i);
}
// nothrow
Value & operator[](size_type i)
{
- errh::check_index(*this, i);
+ errh::check_operator_brackets(*this, i);
return *(this->begin() + i);
}
// nothrow
Value const& operator[](size_type i) const
{
- errh::check_index(*this, i);
+ errh::check_operator_brackets(*this, i);
return *(this->begin() + i);
}
@@ -1063,28 +1063,28 @@
// strong
Value & at(size_type i)
{
- errh::check_index_throwing(*this, i); // may throw
+ errh::check_at(*this, i); // may throw
return *(this->begin() + i);
}
// strong
Value const& at(size_type i) const
{
- errh::check_index_throwing(*this, i); // may throw
+ errh::check_at(*this, i); // may throw
return *(this->begin() + i);
}
// nothrow
Value & operator[](size_type i)
{
- errh::check_index(*this, i);
+ errh::check_operator_brackets(*this, i);
return *(this->begin() + i);
}
// nothrow
Value const& operator[](size_type i) const
{
- errh::check_index(*this, i);
+ errh::check_operator_brackets(*this, i);
return *(this->begin() + i);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk