m_content->m_size = n;
}
}
+ #if __cplusplus < 199711L
+ basic_string(basic_string&& str) noexcept:
+ basic_string(allocator_type())
+ {
+ }
+ basic_string(basic_string&& str, const allocator_type& alloc) noexcept:
+ basic_string(alloc)
+ {
+ m_content = str.m_content;
+ str.m_content = 0;
+ }
+ #endif
~basic_string()
{
release_content();
--- /dev/null
+/*
+ * Acess2 C++ Library
+ * - By John Hodge (thePowersGang)
+ *
+ * string (header)
+ * - C++'s String type
+ */
+#ifndef _LIBCXX_UTILITY_
+#define _LIBCXX_UTILITY_
+
+namespace std {
+
+template <class T1, class T2>
+class pair
+{
+public:
+ typedef T1 first_type;
+ typedef T2 second_type;
+
+ first_type first;
+ second_type second;
+
+ pair()
+ {
+ }
+ template <class U, class V>
+ pair(const pair<U,V>& pr):
+ first (pr.first),
+ second(pr.second)
+ {
+ }
+ pair(const first_type& a, const second_type& b):
+ first (a),
+ second(b)
+ {
+ }
+ // operator = is implicit
+};
+
+template <class T1, class T2>
+bool operator== (const pair<T1,T2>& lhs, const pair<T1,T2>& rhs) {
+ return lhs.first == rhs.first && lhs.second == rhs.second;
+}
+template <class T1, class T2>
+bool operator!= (const pair<T1,T2>& lhs, const pair<T1,T2>& rhs) {
+ return !(lhs == rhs);
+}
+
+}; // namespace std
+
+#endif
+
+// vim: ft=cpp
+