Molybden API
|
The base class that all pair value types must implement. More...
#include <upload_data.hpp>
Public Member Functions | |
template<class S > | |
std::shared_ptr< S > | as () |
Casts this pair value to the target type. | |
Protected Member Functions | |
virtual MultipartFormDataPairValueType | type () const =0 |
Returns the current value type. | |
The base class that all pair value types must implement.
std::shared_ptr< S > molybden::MultipartFormDataPairValue::as | ( | ) |
Casts this pair value to the target type.
Returns an empty std::shared_ptr
if this pair value type is not of the given target type. For example:
S | the target type that must be the MultipartFormDataPairValue subclass. |