Beispiel #1
0
        public static void swap(ref std_vector <T> _this, ref std_vector <T> _other)
        {
            std_vector <T> temp = _this;

            _this  = _other;
            _other = temp;
        }
Beispiel #2
0
        /// <summary>
        /// 返回关联分配器
        /// </summary>
        /// <returns></returns>
        public std_vector <T> get_allocator()
        {
            std_vector <T> copy = new std_vector <T>(this.ToArray());

            return(copy);
        }