Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Book.h"
- #include <initializer_list>
- #include <algorithm> //for swap
- class Library {
- Book* arr;
- std::size_t size;
- friend std::ostream& operator<<(std::ostream& out, const Library&);
- public:
- Library();
- Library(int n);
- Library(std::initializer_list<Book> initList);
- Library(const Library& other);
- Library(Library&& other);
- Library& operator=(const Library& right);
- Library& operator=(Library&& right);
- Book& operator[](std::size_t index);
- const Book& operator[](std::size_t index) const;
- std::size_t GetSize() const;
- ~Library();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement