Run clang-format
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
#include <exception>
|
||||
#include <memory>
|
||||
|
||||
struct empty_stack: std::exception
|
||||
{
|
||||
const char* what() const throw();
|
||||
struct empty_stack : std::exception {
|
||||
const char* what() const throw();
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class threadsafe_stack
|
||||
{
|
||||
template <typename T>
|
||||
class threadsafe_stack {
|
||||
public:
|
||||
threadsafe_stack();
|
||||
threadsafe_stack(const threadsafe_stack&);
|
||||
threadsafe_stack& operator=(const threadsafe_stack&) = delete;
|
||||
threadsafe_stack();
|
||||
threadsafe_stack(const threadsafe_stack&);
|
||||
threadsafe_stack& operator=(const threadsafe_stack&) = delete;
|
||||
|
||||
void push(T new_value);
|
||||
std::shared_ptr<T> pop();
|
||||
void pop(T& value);
|
||||
bool empty() const;
|
||||
void push(T new_value);
|
||||
std::shared_ptr<T> pop();
|
||||
void pop(T& value);
|
||||
bool empty() const;
|
||||
};
|
||||
|
||||
int main()
|
||||
{}
|
||||
int
|
||||
main()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user