stlab.adobe.com Adobe Systems Incorporated

array.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /**************************************************************************************************/
00008 
00009 #ifndef ADOBE_ARRAY_HPP
00010 #define ADOBE_ARRAY_HPP
00011 
00012 #include <adobe/config.hpp>
00013 
00014 #include <adobe/array_fwd.hpp>
00015 
00016 #include <adobe/any_regular.hpp>
00017 #include <adobe/typeinfo.hpp>
00018 #include <adobe/vector.hpp>
00019 
00020 /**************************************************************************************************/
00021 
00022 namespace adobe {
00023 namespace version_1 {
00024 
00025 /**************************************************************************************************/
00026 
00027 template <typename T> // T models Regular
00028 inline void push_back(array_t& v, const T& x, typename copy_sink<T>::type = 0)
00029 { v.push_back(any_regular_t(x)); }
00030 
00031 template <typename T> // T models Regular
00032 inline void push_back(array_t& v, T x, typename move_sink<T>::type = 0)
00033 { v.push_back(any_regular_t(move(x))); }
00034 
00035 inline void push_back(array_t& v, any_regular_t x)
00036 { v.push_back(move(x)); }
00037 
00038 /**************************************************************************************************/
00039 
00040 } // namespace version_1
00041 
00042 using version_1::push_back;
00043 
00044 } // namespace adobe
00045 
00046 /**************************************************************************************************/
00047 
00048 ADOBE_SHORT_NAME_TYPE('a','r','r','y', adobe::array_t)
00049 
00050 /**************************************************************************************************/
00051 
00052 #endif

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google