aboutsummaryrefslogtreecommitdiff
path: root/build/prefix-map.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 12:25:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 12:25:02 +0200
commit4cda4b89c16932f02e04c5019a71b659ccf821e6 (patch)
tree8fbaddb1c64a53c9c871c1a96a99ec64490d222a /build/prefix-map.txx
parent5cb5b09b198932a0d3bd985fd52fd9fbcb1c2af5 (diff)
Move prefix-map from build2 to libbutl
Diffstat (limited to 'build/prefix-map.txx')
-rw-r--r--build/prefix-map.txx43
1 files changed, 0 insertions, 43 deletions
diff --git a/build/prefix-map.txx b/build/prefix-map.txx
deleted file mode 100644
index 528fd3c..0000000
--- a/build/prefix-map.txx
+++ /dev/null
@@ -1,43 +0,0 @@
-// file : build/prefix-map.txx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-namespace build
-{
- template <typename M>
- auto prefix_map_common<M>::
- find_prefix (const key_type& k) -> std::pair<iterator, iterator>
- {
- std::pair<iterator, iterator> r;
- r.first = this->lower_bound (k);
-
- for (r.second = r.first;
- r.second != this->end ();
- ++r.second)
- {
- if (!this->key_comp ().prefix (k, r.second->first))
- break;
- }
-
- return r;
- }
-
- template <typename M>
- auto prefix_map_common<M>::
- find_prefix (const key_type& k) const ->
- std::pair<const_iterator, const_iterator>
- {
- std::pair<const_iterator, const_iterator> r;
- r.first = this->lower_bound (k);
-
- for (r.second = r.first;
- r.second != this->end ();
- ++r.second)
- {
- if (!this->key_comp ().prefix (k, r.second->first))
- break;
- }
-
- return r;
- }
-}