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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -