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