Hello
I've been wondering how do you guys organize different data types in c++.
For instance datatype customer:
Code:
class customer {
public:
std::string get_name() { return m_name; }
std::string get_surname() { return m_surname; }
private:
std::string m_name;
std::string m_surname;
};
class customer_list {
typedef std::string data_type;
typedef std::deque<data_type> list;
typedef list::size_type size_type;
};
Or would you put
Code:
typedef std::string list_type;
inside customer class?
Many thanks in advance!