STL源码剖析之ROUND_UP函数实现原理及其拓展
STL源码allocator的实现中有一个ROUND_UP函数,作用是将非8倍数的整数上调到8的倍数。// instead of enum { x = N }, but fewcompilers accept the former.# ifndef__SUNPRO_CC enum {__ALIGN = 8}; enum {__MAX_...