Skip to content

Commit

Permalink
docs: string_token::arg javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed May 24, 2024
1 parent ccd0fb7 commit 470f921
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion include/boost/url/grammar/string_token.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,22 @@ struct arg
*/
virtual char* prepare(std::size_t n) = 0;

// prevent misuse
/// Virtual destructor
virtual ~arg() = default;

/// Default constructor
arg() = default;

/// Default move constructor
arg(arg&&) = default;

/// Deleted copy constructor
arg(arg const&) = delete;

/// Deleted move assignment
arg& operator=(arg&&) = delete;

/// Deleted copy assignment
arg& operator=(arg const&) = delete;
};

Expand Down Expand Up @@ -189,6 +199,8 @@ struct append_to_t
string_type& s_;
};

/** Create a token for appending to a plain string
*/
template<
class Alloc =
std::allocator<char>>
Expand Down Expand Up @@ -252,6 +264,8 @@ struct assign_to_t
string_type& s_;
};

/** A token for assigning to a plain string
*/
template<
class Alloc =
std::allocator<char>>
Expand Down Expand Up @@ -321,6 +335,8 @@ struct preserve_size_t
std::size_t n_ = 0;
};

/** A token for producing a durable core::string_view from a temporary string
*/
template<
class Alloc =
std::allocator<char>>
Expand Down

0 comments on commit 470f921

Please sign in to comment.