Coder Social home page Coder Social logo

hello's Introduction

Hello

hello's People

Contributors

xssagy avatar

Watchers

 avatar

hello's Issues

-

template <typename T>
class vector
{
public:
    using value_type = T;
    using size_type = std::size_t;
    using reference = value_type&;

    // 默认构造函数。
    vector();

    // 构造拥有 count 个有值 value 的元素的容器。
    vector(size_type count, const T& value);

    // 构造拥有 count 个 默认插入的 T 实例的容器。不进行复制。
    explicit vector(size_type count);

    // 构造拥有范围 [first, last) 内容的容器。
    template <typename InputIt>
    vector(InputIt first, InputIt last);

    // 复制构造函数。构造拥有 other 内容的容器。
    vector(const vector& other);

    // 移动构造函数。用移动语义构造拥有 other 内容的容器。分配器通过属于 other 的分配器移动构造获得。移动后,保证 other 是 empty() 。
    vector(vector&& other);

    // 构造拥有 initializer_list init 内容的容器。
    vector(std::initializer_list<T> init);

    // 析构函数。
    ~vector();    
};

Chat

image

你猜百度能不能搜到

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.