1.ability to perform or produce
2.the susceptibility of something to a particular treatment;
the capability of a metal to be fused
3.the amount that can be contained;
the gas tank has a capacity of 12 gallons
4.the maximum production possible;
the plant is working at 80 per cent capacity
5.a specified function;
he was employed in the capacity of director
6.(computer science) the amount of information (in bytes) that can be stored on a disk drive;
the capacity of a hard disk drive is usually expressed in megabytes
7.an electrical phenomenon whereby an electric charge is stored
8.the power to learn or retain knowledge; in law, the ability to understand the facts and significance of your behavior
9.tolerance for alcohol;
he had drunk beyond his capacity
語法: capacity 函數:size_type capacity()作用: 返回當前vector在重新進行內存分配以前所能容納的元素數量。