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
Post a Comment