Restyle sources

This commit is contained in:
Vinnie Falco committed 2016-08-26 13:06:42 -04:00
1 parent 878c0f2a19
commit b607d47bd3
44 files changed
+173 -173

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ namespace beast {
@note See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3896.pdf">
Library Foundations For Asynchronous Operations</a>
*/
template <class CompletionHandler, class Signature>
template<class CompletionHandler, class Signature>
struct async_completion
{
/** The type of the final handler called by the asynchronous initiation function.
+4 -4
View File
@@ -44,7 +44,7 @@ namespace detail {
*/
template <class = void>
template<class = void>
std::string const&
base64_alphabet()
{
@@ -62,7 +62,7 @@ is_base64(unsigned char c)
return (std::isalnum(c) || (c == '+') || (c == '/'));
}
template <class = void>
template<class = void>
std::string
base64_encode (std::uint8_t const* data,
std::size_t in_len)
@@ -112,7 +112,7 @@ base64_encode (std::uint8_t const* data,
}
template <class = void>
template<class = void>
std::string
base64_encode (std::string const& s)
{
@@ -120,7 +120,7 @@ base64_encode (std::string const& s)
std::uint8_t const*> (s.data()), s.size());
}
template <class = void>
template<class = void>
std::string
base64_decode(std::string const& data)
{
+2 -2
View File
@@ -54,14 +54,14 @@ public:
operator()()
{
invoke(h_, args_,
index_sequence_for<Args...> ());
index_sequence_for<Args...>());
}
void
operator()() const
{
invoke(h_, args_,
index_sequence_for<Args...> ());
index_sequence_for<Args...>());
}
friend
@@ -14,7 +14,7 @@
namespace beast {
namespace detail {
template <class T>
template<class T>
struct empty_base_optimization_decide
: std::integral_constant <bool,
std::is_empty <T>::value
@@ -25,7 +25,7 @@ struct empty_base_optimization_decide
{
};
template <
template<
class T,
int UniqueID = 0,
bool ShouldDeriveFrom =
@@ -57,7 +57,7 @@ public:
//------------------------------------------------------------------------------
template <
template<
class T,
int UniqueID
>
@@ -13,7 +13,7 @@
namespace beast {
namespace detail {
template <class R, class C, class ...A>
template<class R, class C, class ...A>
auto
is_call_possible_test(C&& c, int, A&& ...a)
-> decltype(std::is_convertible<
@@ -21,7 +21,7 @@ is_call_possible_test(C&& c, int, A&& ...a)
std::is_same<R, void>::value,
std::true_type());
template <class R, class C, class ...A>
template<class R, class C, class ...A>
std::false_type
is_call_possible_test(C&& c, long, A&& ...a);
@@ -30,13 +30,13 @@ is_call_possible_test(C&& c, long, A&& ...a);
is_call_possible<T, void(std::string)>
*/
/** @{ */
template <class C, class F>
template<class C, class F>
struct is_call_possible
: std::false_type
{
};
template <class C, class R, class ...A>
template<class C, class R, class ...A>
struct is_call_possible<C, R(A...)>
: decltype(is_call_possible_test<R>(
std::declval<C>(), 1, std::declval<A>()...))
+2 -2
View File
@@ -281,10 +281,10 @@ finish(sha1_context& ctx, void* digest) noexcept
ctx.buf[ctx.buflen++] = 0x00;
std::uint32_t block[BLOCK_INTS];
sha1::make_block(ctx.buf, block);
if (buflen > BLOCK_BYTES - 8)
if(buflen > BLOCK_BYTES - 8)
{
sha1::transform(ctx.digest, block);
for (size_t i = 0; i < BLOCK_INTS - 2; i++)
for(size_t i = 0; i < BLOCK_INTS - 2; i++)
block[i] = 0;
}
@@ -34,7 +34,7 @@ class has_get_io_service
decltype(std::declval<U>().get_io_service()),
boost::asio::io_service&>>
static R check(int);
template <class>
template<class>
static std::false_type check(...);
public:
using type = decltype(check<T>(0));
+1 -1
View File
@@ -227,7 +227,7 @@ public:
/// Write the given data to the stream. Returns the number of bytes written,
/// or 0 if an error occurred.
template <class ConstBufferSequence>
template<class ConstBufferSequence>
std::size_t
write_some(ConstBufferSequence const& buffers,
error_code& ec)
+3 -3
View File
@@ -34,10 +34,10 @@ namespace beast {
caller is still responsible for freeing memory.
*/
#if GENERATING_DOCS
template <class T, class CompletionHandler>
template<class T, class CompletionHandler>
class handler_alloc;
#else
template <class T, class CompletionHandler>
template<class T, class CompletionHandler>
class handler_alloc
{
private:
@@ -46,7 +46,7 @@ private:
// should produce a compile error if CompletionHandler is not
// constructible from H.
//
template <class U, class H>
template<class U, class H>
friend class handler_alloc;
CompletionHandler h_;
@@ -85,7 +85,7 @@ public:
is_continuation(op->d_->h);
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, read_some_op* op)
{