summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-17 13:56:42 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-17 15:28:10 +0200
commit29afbedb685576877d88f550d20572b506048f77 (patch)
treefb66382dd9cb28ea7b4e290aec2f71f2889dc24d /o3tl
parent3b199abf89db17420c0ef4df16bdd61ae335f348 (diff)
sorted_vector: operator[] returning by value doesn't make much sense
Change-Id: I43f344fb06e45cc883c8c6cd9bbfbe29ef9c01f7
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/inc/o3tl/sorted_vector.hxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/o3tl/inc/o3tl/sorted_vector.hxx b/o3tl/inc/o3tl/sorted_vector.hxx
index b6f0d3ac6e8a..0386680a9914 100644
--- a/o3tl/inc/o3tl/sorted_vector.hxx
+++ b/o3tl/inc/o3tl/sorted_vector.hxx
@@ -94,37 +94,16 @@ public:
return base_t::end();
}
- // Return a value rather than a reference, so that the vector cannot be directly updated,
- // and the sorted invariant violated.
- Value front()
- {
- return base_t::front();
- }
-
const Value& front() const
{
return base_t::front();
}
- // Return a value rather than a reference, so that the vector cannot be directly updated,
- // and the sorted invariant violated.
- Value back()
- {
- return base_t::back();
- }
-
const Value& back() const
{
return base_t::back();
}
- // Return a value rather than a reference, so that the vector cannot be directly updated,
- // and the sorted invariant violated.
- Value operator[]( size_t index )
- {
- return base_t::operator[]( index );
- }
-
const Value& operator[]( size_t index ) const
{
return base_t::operator[]( index );