Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8f5b707d
Kaydet (Commit)
8f5b707d
authored
Tem 25, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sorted_vector: removing the vector::ersase makes more sense
Change-Id: Id70e87ab1b7f6a55ad2374cab05fa7f3bdef2cc4
üst
07c1dac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sorted_vector.hxx
o3tl/inc/o3tl/sorted_vector.hxx
+7
-3
No files found.
o3tl/inc/o3tl/sorted_vector.hxx
Dosyayı görüntüle @
8f5b707d
...
...
@@ -34,7 +34,6 @@ public:
typedef
typename
std
::
vector
<
Value
>::
size_type
size_type
;
using
base_t
::
clear
;
using
base_t
::
erase
;
using
base_t
::
empty
;
using
base_t
::
size
;
...
...
@@ -56,7 +55,7 @@ public:
iterator
it
=
lower_bound_nonconst
(
x
);
if
(
it
!=
base_t
::
end
()
&&
!
less_than
(
x
,
*
it
))
{
erase
(
it
);
base_t
::
erase
(
it
);
return
1
;
}
return
0
;
...
...
@@ -67,7 +66,12 @@ public:
base_t
::
erase
(
begin_nonconst
()
+
index
);
}
// hack: public erase with const_iterator, should not change sort order
// like C++ 2011: erase with const_iterator (doesn't change sort order)
void
erase
(
const_iterator
const
&
position
)
{
// C++98 has vector::erase(iterator), so call that
base_t
::
erase
(
begin_nonconst
()
+
(
position
-
begin
()));
}
void
erase
(
const_iterator
const
&
first
,
const_iterator
const
&
last
)
{
base_t
::
erase
(
begin_nonconst
()
+
(
first
-
begin
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment