1 #ifndef __JTOOLS__JPAIR__
2 #define __JTOOLS__JPAIR__
16 namespace JPP {
using namespace JTOOLS; }
27 template<
class JKey_t,
class JValue_t>
81 friend inline std::ostream& operator<<(std::ostream& out, const JPair<JKey_t, JValue_t>& pair)
114 friend inline JWriter& operator<<(JWriter& out, const JPair<JKey_t, JValue_t>& pair)
136 template<
class JKey_t,
class JValue_t>
152 mapped_type& value) :
157 const key_type&
getKey()
const {
return this->first; }
158 const mapped_type&
getValue()
const {
return this->second; }
160 key_type&
getKey() {
return this->first; }
171 template<
class JKey_t,
class JValue_t>
172 class JPair<const JKey_t&, JValue_t&>
187 mapped_type& value) :
192 const key_type&
getKey()
const {
return this->first; }
193 const mapped_type&
getValue()
const {
return this->second; }
205 template<
class JKey_t,
class JValue_t>
206 class JPair<const JKey_t&,
const JValue_t&>
221 const mapped_type& value) :
226 const key_type&
getKey()
const {
return this->first; }
227 const mapped_type&
getValue()
const {
return this->second; }
Interface for binary output.
JArgument< T >::argument_type argument_type
Interface for binary input.