oop - What are these c++ syntax equilvalent to? -


from http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/tutorial/tutdaytime3/src.html calls made methods or classes outside class or member method declaration preceded by:

class tcp_connection   : public boost::enable_shared_from_this<tcp_connection>     tcp_connection(boost::asio::io_service& io_service)     : socket_(io_service)   tcp_server(boost::asio::io_service& io_service)     : acceptor_(io_service, tcp::endpoint(tcp::v4(), 13)) 

in first example, colon indicates inheritance (in case boost template facilitates creating shared pointers this)

in last 2 examples colon indicates start of constructor initialization list.

please, read a book on c++


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -