[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Usata-commits] Changes to usata2/src/gproperties.hpp
From: |
David Lau |
Subject: |
[Usata-commits] Changes to usata2/src/gproperties.hpp |
Date: |
Tue, 01 Mar 2005 19:27:12 -0500 |
Index: usata2/src/gproperties.hpp
diff -u usata2/src/gproperties.hpp:1.1 usata2/src/gproperties.hpp:1.2
--- usata2/src/gproperties.hpp:1.1 Wed Feb 2 20:52:04 2005
+++ usata2/src/gproperties.hpp Wed Mar 2 00:27:11 2005
@@ -10,7 +10,7 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: gproperties.hpp,v 1.1 2005/02/02 20:52:04 skunix Exp $
+// $Id: gproperties.hpp,v 1.2 2005/03/02 00:27:11 skunix Exp $
#ifndef USATA_GPROPERTIES_HPP
#define USATA_GPROPERTIES_HPP
@@ -51,13 +51,12 @@
typedef typename storage_type::iterator storage_iter;
storage_type mData;
bool mNeed_sort;
-
+ bool mSortDisable;
void sort()
{
- if (mNeed_sort)
- std::sort(mData.begin(),
- mData.end(),
-
std::less<value_type>());
+ std::sort(mData.begin(),
+ mData.end(),
+ std::less<value_type>());
}
public:
GProperties(size_t reserve=0)
@@ -68,12 +67,12 @@
{
mNeed_sort = true;
mData.push_back(value_type(key,data));
+ sort();
}
boost::any&
retr(const key_type& key)
{
- sort();
storage_iter it(
std::lower_bound(mData.begin(),
mData.end(), key));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Usata-commits] Changes to usata2/src/gproperties.hpp,
David Lau <=