c++ - define a namespace across multiple files -


this question has answer here:

i wanna declare single namespace (let's "mynamespace")across multiple files namespace "std" declared across multiple header files "iostream" , "array" , "vector" etc ...(i declared them in 2 header files )

how can ?

in each file namespace declaration usual. no tricks needed.

a namespace not class, can add see fit.

or andrew hare succinctly says in duplicate:

yes, how it.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -