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, T x)
00029 { v.push_back(any_regular_t(adobe::move(x))); }
00030 
00031 inline void push_back(array_t& v, any_regular_t x)
00032 { v.push_back(adobe::move(x)); }
00033 
00034 /**************************************************************************************************/
00035 
00036 } // namespace version_1
00037 
00038 using version_1::push_back;
00039 
00040 } // namespace adobe
00041 
00042 /**************************************************************************************************/
00043 
00044 ADOBE_SHORT_NAME_TYPE('a','r','r','y', adobe::array_t)
00045 
00046 /**************************************************************************************************/
00047 
00048 #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