Share via


bind Function (C++ REST SDK)

Binds an individual reference to a string value.

Warning

This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at http://casablanca.codeplex.com/documentation.

template<
   typename key_type,
   typename _t
>
bool bind(
   const key_type &text,
   _t &ref
);

template <
   typename key_type
>
bool bind(
   const key_type &text,
   utility::string_t &ref
);

Parameters

  • key_type
    The type of the string value.

  • _t
    The type of the value to bind to.

  • text
    The string value.

  • ref
    The value to bind to.

Return Value

true if the binding succeeds, false otherwise.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

web::http Namespace