By public functions, protected functions, friend functions, friend classes...
I gave you an example of function ( reallocate() ) you shouldn't ever give users access to, but which can be called by many public function: for example: reserve(), push_back(), shrink_to_fit()...