Skip to content

Commit

Permalink
Task 4
Browse files Browse the repository at this point in the history
/*noexcept*/
/*strong*/
/*basic*/
  • Loading branch information
CatInCosmicSpace authored Sep 19, 2016
1 parent 5e85b33 commit 73a8f63
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ using std::ostream;
template<typename T>
class stack {
public:
stack();
stack(stack const & rhs);
~stack();
stack(); /*noexcept*/
stack(stack const & rhs); /*strong*/
~stack(); /*noexcept*/

auto count() const noexcept->size_t;
auto top() const->const T&;
auto pop() -> void;
auto push(T const & value) -> void;
auto count() const noexcept -> size_t; /*noexcept*/
auto top() const -> const T&; /*strong*/
auto pop() -> void; /*strong*/
auto push(T const & value) -> void; /*strong*/

auto operator=(stack const & rhs)->stack &;
auto operator==(stack const & rhs) -> bool;
auto operator=(stack const & rhs) -> stack &; /*noexcept*/
auto operator==(stack const & rhs) -> bool; /*noexcept*/
private:
T * array_;
size_t array_size_;
size_t count_;

auto copy(const T * rhs, size_t sizeLeft, size_t sizeRight)->T *;
auto swap(stack & rhs) -> void;
auto copy(const T * rhs, size_t sizeLeft, size_t sizeRight)->T *; /*strong*/
auto swap(stack & rhs) -> void; /*noexcept*/
};

#include "stack.cpp"

#endif // STACK_HPP
#endif // STACK_HPP

0 comments on commit 73a8f63

Please sign in to comment.