22 #ifndef Rcpp_WeakReference_h
23 #define Rcpp_WeakReference_h
31 WeakReference_Impl(){}
40 WeakReference_Impl( SEXP x){
41 if( TYPEOF(x) != WEAKREFSXP )
42 throw not_compatible(
"not a weak reference" ) ;
50 return R_WeakRefKey(Storage::get__()) ;
57 return R_WeakRefValue(Storage::get__());
#define RCPP_GENERATE_CTOR_ASSIGN(__CLASS__)
RCPP_API_CLASS(DottedPair_Impl)
WeakReference_Impl< PreserveStorage > WeakReference