Title: [162661] branches/jsCStack/Source/WTF
Revision
162661
Author
fpi...@apple.com
Date
2014-01-23 16:36:08 -0800 (Thu, 23 Jan 2014)

Log Message

Unreviewed, fix build by adding a missing file.

* wtf/IteratorPair.h: Added.

Modified Paths

Added Paths

Diff

Modified: branches/jsCStack/Source/WTF/ChangeLog (162660 => 162661)


--- branches/jsCStack/Source/WTF/ChangeLog	2014-01-24 00:23:19 UTC (rev 162660)
+++ branches/jsCStack/Source/WTF/ChangeLog	2014-01-24 00:36:08 UTC (rev 162661)
@@ -1,3 +1,9 @@
+2014-01-23  Filip Pizlo  <fpi...@apple.com>
+
+        Unreviewed, fix build by adding a missing file.
+
+        * wtf/IteratorPair.h: Added.
+
 2014-01-23  Mark Hahnenberg  <mhahnenb...@apple.com>
 
         Merge branch up to ToT r161658.

Added: branches/jsCStack/Source/WTF/wtf/IteratorPair.h (0 => 162661)


--- branches/jsCStack/Source/WTF/wtf/IteratorPair.h	                        (rev 0)
+++ branches/jsCStack/Source/WTF/wtf/IteratorPair.h	2014-01-24 00:36:08 UTC (rev 162661)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WTF_IteratorPair_h
+#define WTF_IteratorPair_h
+
+namespace WTF {
+
+template<typename Iterator>
+class IteratorPair {
+public:
+    IteratorPair(Iterator begin, Iterator end)
+        : m_begin(std::move(begin))
+        , m_end(std::move(end))
+    {
+    }
+
+    Iterator begin() const { return m_begin; }
+    Iterator end() const { return m_end; }
+
+private:
+    Iterator m_begin;
+    Iterator m_end;
+};
+
+} // namespace WTF
+
+#endif // WTF_IteratorPair
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to