This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Query regarding libstdc++ std::list internal end() representation


On 2 March 2017 at 22:30, Soul Studios wrote:
>>> Two questions:
>>> 1. I couldn't find the definition for list nodes when searching
>>> through the headers,
>>
>> It is at the beginning of bits/stl_list.h.
>>
>
> _m_node, which contains the next and previous points, is not defined in
> bits/stl_list.h. Where is it defined?

In bits/stl_list.h, see line 198. It's a pointer to
__detail::_List_node_base, defined at the top of the same file.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]