diff options
Diffstat (limited to 'zp/include/zp/mem')
-rw-r--r-- | zp/include/zp/mem | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/zp/include/zp/mem b/zp/include/zp/mem index 6d44236..ff289e9 100644 --- a/zp/include/zp/mem +++ b/zp/include/zp/mem @@ -17,42 +17,40 @@ namespace zp { }; #if zp_std_cxx11 - namespace dev { - template<typename typ,typename alctyp> class arr { - public: - zp_nothw arr(); - arr(::zp::arr<typ,alctyp> & oth); - explicit arr(::zp::siz len); + template<typename typ,typename alctyp> class arr { + public: + zp_nothw arr(); + arr(::zp::arr<typ,alctyp> & oth); + explicit arr(::zp::siz len); #if zp_std_cxx11 - zp_nothw arr(::zp::arr<typ,alctyp> && oth); + zp_nothw arr(::zp::arr<typ,alctyp> && oth); #endif - zp_nothw ~arr(); + zp_nothw ~arr(); - zp_nothw bool oky() const; + zp_nothw bool oky() const; - zp_nothw typ * ptr(); - zp_nothw typ const* ptr() const; - zp_nothw ::zp::siz len() const; + zp_nothw typ * ptr(); + zp_nothw typ const* ptr() const; + zp_nothw ::zp::siz len() const; - bool alc(::zp::siz len); + bool alc(::zp::siz len); - template<typename valtyp> ::zp::siz fil(valtyp const& val); + template<typename valtyp> ::zp::siz fil(valtyp const& val); - zp_nothw typ * begin(); - zp_nothw typ const* begin() const; - zp_nothw typ * end(); - zp_nothw typ const* end() const; + zp_nothw typ * begin(); + zp_nothw typ const* begin() const; + zp_nothw typ * end(); + zp_nothw typ const* end() const; - zp_nothw typ & operator [](::zp::ptrdif off); - zp_nothw typ const& operator [](::zp::ptrdif off) const; + zp_nothw typ & operator [](::zp::ptrdif off); + zp_nothw typ const& operator [](::zp::ptrdif off) const; - private: - alctyp _alc; - typ * _buf; - ::zp::siz _len; - }; - } + private: + alctyp _alc; + typ * _buf; + ::zp::siz _len; + }; #endif template<typename dsttyp,typename srctyp> zp_iln zp_nothw inline ::zp::cpyres<dsttyp,srctyp> memcpy(dsttyp * zp_prv_rsr dst, srctyp const* zp_prv_rsr src, ::zp::siz const num); // Implement in seperate file. |