[cfe-dev] __vector_base::__destruct_at_end

Shriramana Sharma samjnaa at gmail.com
Wed Jun 26 07:31:13 PDT 2013


Hello. I've been examining the libc++ sources primarily to know about
how containers are implemented, and I note this member function of
__vector_base:

void __destruct_at_end(const_pointer __new_last, true_type) _NOEXCEPT;

Where is it used? In the same file I only observe calls to:

__destruct_at_end(const_pointer __new_last)

which delegates to:

__destruct_at_end(const_pointer __new_last, false_type)

Or have I missed something? Also, why the two functions?

Also: why separate all the containers into __container and
__container_base with the former inheriting from the latter? Can't it
be done in a single class?

Thanks!

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा




More information about the cfe-dev mailing list