473,624 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with STL allocators

Hi,

I have a written a custom allocator for STL, on the lines of default
allocator as follows :

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
typedef const T& const_reference ;
typedef T value_type;

template <class U>
struct rebind { typedef pool_allocator< U> other; };

pointer address(referen ce x) const {return &x;}
const_pointer address(const_r eference x) const {return &x;}

pool_allocator( ){}
pool_allocator( const pool_allocator& ) {}
template <class U>
pool_allocator (const pool_allocator< U>&) {}
~pool_allocator (){}
size_type max_size() const throw() {return size_t(-1) /
sizeof(value_ty pe);}

pointer allocate(size_t ype size, const void* hint = 0)
return static_cast<poi nter>(mem_.allo cate(size*sizeo f(T)));
}

void construct(point er p, const T& val)
{
new(static_cast <void*>(p)) T(val);
}
void construct(point er p)
{
new(static_cast <void*>(p)) T();
}

void destroy(pointer p){p->~T();}
void destroy(char* ){}
void destroy(void* ){}
void deallocate(poin ter p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(void *p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(poin ter p)
{
mem_.deallocate (p);
}
void deallocate(void *p)
{
mem_.deallocate (p);
}

static void dump(){
mem_.dump();
}

private:

static pool mem_;
};

//template <class T> pool pool_allocator< T>::mem_;

template <class T, class U>
inline bool operator==(cons t pool_allocator< T>&, const
pool_allocator< U>){return true;}

template <class T, class U>
inline bool operator!=(cons t pool_allocator< T>&, const
pool_allocator< U>){return false;}

I do a simple thing like : map<int, float, less<int>,
pool_allocator< pair<int, float> > > m;
I try to build it on HPUX using aCC (aCC: HP ANSI C++ B3910B A.03.39
). But unfortunately, I am facing following errors :

Error 874: "/opt/aCC/include/memory", line 529 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef T& reference;
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 530 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef const T& const_reference ;
^^^^^^^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
I am not very good at this ... any reasons why this could be happening
?

~mar00ned
Jul 22 '05 #1
6 1583

"mar00ned" <ro**********@g mail.com> wrote in message
news:84******** *************** ***@posting.goo gle.com...
Hi,

I have a written a custom allocator for STL, on the lines of default
allocator as follows :

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
typedef const T& const_reference ;
typedef T value_type;

template <class U>
struct rebind { typedef pool_allocator< U> other; };

pointer address(referen ce x) const {return &x;}
const_pointer address(const_r eference x) const {return &x;}

pool_allocator( ){}
pool_allocator( const pool_allocator& ) {}
template <class U>
pool_allocator (const pool_allocator< U>&) {}
~pool_allocator (){}
size_type max_size() const throw() {return size_t(-1) /
sizeof(value_ty pe);}

pointer allocate(size_t ype size, const void* hint = 0)
return static_cast<poi nter>(mem_.allo cate(size*sizeo f(T)));
}

void construct(point er p, const T& val)
{
new(static_cast <void*>(p)) T(val);
}
void construct(point er p)
{
new(static_cast <void*>(p)) T();
}

void destroy(pointer p){p->~T();}
void destroy(char* ){}
void destroy(void* ){}
void deallocate(poin ter p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(void *p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(poin ter p)
{
mem_.deallocate (p);
}
void deallocate(void *p)
{
mem_.deallocate (p);
}

static void dump(){
mem_.dump();
}

private:

static pool mem_;
};

//template <class T> pool pool_allocator< T>::mem_;

template <class T, class U>
inline bool operator==(cons t pool_allocator< T>&, const
pool_allocator< U>){return true;}

template <class T, class U>
inline bool operator!=(cons t pool_allocator< T>&, const
pool_allocator< U>){return false;}

I do a simple thing like : map<int, float, less<int>,
pool_allocator< pair<int, float> > > m;
I try to build it on HPUX using aCC (aCC: HP ANSI C++ B3910B A.03.39
). But unfortunately, I am facing following errors :

Error 874: "/opt/aCC/include/memory", line 529 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef T& reference;
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 530 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef const T& const_reference ;
^^^^^^^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
I am not very good at this ... any reasons why this could be happening
?


You need to create a specialised void allocator. Since you cannot allocate
void objects this allocator is very simple.

template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;

template <class U>
struct rebind { typedef pool_allocator< U> other; };

};

Something like that anyway. The particular error you were getting were
because the compiler was trying to substitute void for T in your
unspecialised template and coming up with code like this

typedef void& reference;

which is illegal because you cannot have a void reference.

john
Jul 22 '05 #2
My allocator looks like this now :

template <class T> class pool_allocator;
template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;
template <class U>
struct rebind { typedef pool_allocator< U> other; };

};

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
....

but unfortunately the error havent stopped.

Thanks and regards,
~mar00ned

"John Harrison" <jo************ *@hotmail.com> wrote in message
news:2r******** *****@uni-berlin.de...

"mar00ned" <ro**********@g mail.com> wrote in message
news:84******** *************** ***@posting.goo gle.com...
Hi,

I have a written a custom allocator for STL, on the lines of default
allocator as follows :

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
typedef const T& const_reference ;
typedef T value_type;

template <class U>
struct rebind { typedef pool_allocator< U> other; };

pointer address(referen ce x) const {return &x;}
const_pointer address(const_r eference x) const {return &x;}

pool_allocator( ){}
pool_allocator( const pool_allocator& ) {}
template <class U>
pool_allocator (const pool_allocator< U>&) {}
~pool_allocator (){}
size_type max_size() const throw() {return size_t(-1) /
sizeof(value_ty pe);}

pointer allocate(size_t ype size, const void* hint = 0)
return static_cast<poi nter>(mem_.allo cate(size*sizeo f(T)));
}

void construct(point er p, const T& val)
{
new(static_cast <void*>(p)) T(val);
}
void construct(point er p)
{
new(static_cast <void*>(p)) T();
}

void destroy(pointer p){p->~T();}
void destroy(char* ){}
void destroy(void* ){}
void deallocate(poin ter p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(void *p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(poin ter p)
{
mem_.deallocate (p);
}
void deallocate(void *p)
{
mem_.deallocate (p);
}

static void dump(){
mem_.dump();
}

private:

static pool mem_;
};

//template <class T> pool pool_allocator< T>::mem_;

template <class T, class U>
inline bool operator==(cons t pool_allocator< T>&, const
pool_allocator< U>){return true;}

template <class T, class U>
inline bool operator!=(cons t pool_allocator< T>&, const
pool_allocator< U>){return false;}

I do a simple thing like : map<int, float, less<int>,
pool_allocator< pair<int, float> > > m;
I try to build it on HPUX using aCC (aCC: HP ANSI C++ B3910B A.03.39
). But unfortunately, I am facing following errors :

Error 874: "/opt/aCC/include/memory", line 529 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef T& reference;
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 530 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
typedef const T& const_reference ;
^^^^^^^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
pointer address (T& x)
^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
^^^^^^^^^
Error 874: "/opt/aCC/include/memory", line 595 # A non-void type is
required for specialization instead of 'void' since the template
creates a reference to that type.
allocator_inter face<Allocator, T>::construct(p ointer p, const T&
val)
I am not very good at this ... any reasons why this could be happening
?


You need to create a specialised void allocator. Since you cannot allocate
void objects this allocator is very simple.

template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;

template <class U>
struct rebind { typedef pool_allocator< U> other; };

};

Something like that anyway. The particular error you were getting were
because the compiler was trying to substitute void for T in your
unspecialised template and coming up with code like this

typedef void& reference;

which is illegal because you cannot have a void reference.

john

Jul 22 '05 #3

"Rohit Mattoo" <ji****@gmail.c om> wrote in message
news:10******** *******@cswreg. cos.agilent.com ...
My allocator looks like this now :

template <class T> class pool_allocator;
template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;
template <class U>
struct rebind { typedef pool_allocator< U> other; };

};

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
....

but unfortunately the error havent stopped.

Thanks and regards,
~mar00ned


I think you should put your specialised template after your generic one, not
before.

john
Jul 22 '05 #4
Unfortunately this hasnt worked either :

#ifndef POOL_ALLOCATOR_ H_INCLUDED_GF
#define POOL_ALLOCATOR_ H_INCLUDED_GF

#include <map>
#include "pool.h"
template <typename T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
typedef const T& const_reference ;
typedef T value_type;

template <typename U>
struct rebind { typedef pool_allocator< U> other; };

pointer address(referen ce x) const {return &x;}
const_pointer address(const_r eference x) const {return &x;}

pool_allocator( ){}
pool_allocator( const pool_allocator& ) {}
template <typename U>
pool_allocator (const pool_allocator< U>&) {}
~pool_allocator (){}
size_type max_size() const throw() {return size_t(-1) /
sizeof(value_ty pe);}

pointer allocate(size_t ype size, const void* hint = 0)
{
return static_cast<poi nter>(mem_.allo cate(size*sizeo f(T)));
}

void construct(point er p, const T& val)
{
new(static_cast <void*>(p)) T(val);
}
void construct(point er p)
{
new(static_cast <void*>(p)) T();
}

void destroy(pointer p){p->~T();}
void destroy(char* ){}
void destroy(void* ){}
void deallocate(poin ter p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(void *p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(poin ter p)
{
mem_.deallocate (p);
}
void deallocate(void *p)
{
mem_.deallocate (p);
}

static void dump(){
mem_.dump();
}

private:

static pool mem_;
};

template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;
template <typename U>
struct rebind { typedef pool_allocator< U> other; };
pool_allocator( ) {}
~pool_allocator () {}
};

template <typename T> pool pool_allocator< T>::mem_;

template <typename T, typename U>
inline bool operator==(cons t pool_allocator< T>&, const
pool_allocator< U>){return true;}

template <typename T, typename U>
inline bool operator!=(cons t pool_allocator< T>&, const
pool_allocator< U>){return false;}

template<typena me Key, typename Value, class Traits = less<Key> >
struct PooledMap
{
typedef map<Key, Value, Traits,pool_all ocator<pair<Key , Value> > > Type;
};
#endif


"John Harrison" <jo************ *@hotmail.com> wrote in message
news:2r******** *****@uni-berlin.de...

"Rohit Mattoo" <ji****@gmail.c om> wrote in message
news:10******** *******@cswreg. cos.agilent.com ...
My allocator looks like this now :

template <class T> class pool_allocator;
template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;
template <class U>
struct rebind { typedef pool_allocator< U> other; };

};

template <class T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
....

but unfortunately the error havent stopped.

Thanks and regards,
~mar00ned
I think you should put your specialised template after your generic one,

not before.

john

Jul 22 '05 #5
On Fri, 24 Sep 2004 14:06:41 +0100, "Rohit Mattoo" <ji****@gmail.c om>
wrote:
template<typen ame Key, typename Value, class Traits = less<Key> >
struct PooledMap
{
typedef map<Key, Value, Traits,pool_all ocator<pair<Key , Value> > > Type;


That should be:
typedef map<Key, Value,
Traits, pool_allocator< pair<const Key, Value> > > Type;

What's the error you're getting now?

Tom
Jul 22 '05 #6

"Rohit Mattoo" <ji****@gmail.c om> wrote in message
news:10******** *******@cswreg. cos.agilent.com ...
Unfortunately this hasnt worked either :

I took this code (I had to fake the pool object) and it compiled fine. The
only change I had to make from your code was to remove the void* and char*
versions of destroy (I don't know why you put them there).

Maybe you have a problem with your compiler, your error messages indicate
that it is ignoring the void specialised version of pool_allocator.
#include <map>

class pool
{
public:
void* allocate(std::s ize_t);
void deallocate(void *, std::size_t);
};

template <typename T>
class pool_allocator
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef T* pointer;
typedef const T* const_pointer;
typedef T& reference;
typedef const T& const_reference ;
typedef T value_type;

template <typename U>
struct rebind { typedef pool_allocator< U> other; };

pointer address(referen ce x) const {return &x;}
const_pointer address(const_r eference x) const {return &x;}

pool_allocator( ){}
pool_allocator( const pool_allocator& ) {}
template <typename U>
pool_allocator (const pool_allocator< U>&) {}
~pool_allocator (){}
size_type max_size() const throw() {return size_t(-1) /
sizeof(value_ty pe);}

pointer allocate(size_t ype size, const void* hint = 0)
{
return static_cast<poi nter>(mem_.allo cate(size*sizeo f(T)));
}

void construct(point er p, const T& val)
{
new(static_cast <void*>(p)) T(val);
}
void construct(point er p)
{
new(static_cast <void*>(p)) T();
}

void destroy(pointer p){p->~T();}
void deallocate(poin ter p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(void *p, size_type n)
{
mem_.deallocate (p, n);
}
void deallocate(poin ter p)
{
mem_.deallocate (p);
}
void deallocate(void *p)
{
mem_.deallocate (p);
}

static void dump(){
mem_.dump();
}

private:

static pool mem_;
};

template <>
class pool_allocator< void>
{
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type ;
typedef void* pointer;
typedef const void* const_pointer;
template <typename U>
struct rebind { typedef pool_allocator< U> other; };
pool_allocator( ) {}
~pool_allocator () {}
};

template <typename T> pool pool_allocator< T>::mem_;

template <typename T, typename U>
inline bool operator==(cons t pool_allocator< T>&, const
pool_allocator< U>){return true;}

template <typename T, typename U>
inline bool operator!=(cons t pool_allocator< T>&, const
pool_allocator< U>){return false;}

std::map<int, float, std::less<int>, pool_allocator< std::pair<int, float> > m;

int main()
{
m[2] = 3.0;
}
John
Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
1698
by: regisser | last post by:
I have a quastion for the C++ professionals and members of the C++ standartization commetee. As i know C++ standart requires an allocator to be a templated parameter in every STL container. Besides that one can pass reference to allocatior into every STL container. This raises the following questions: 1. Containers that were templatized with different allocators are considered different types and thus cannot be assigned to each other....
18
380
by: Mark A. Gibbs | last post by:
I'm having yet another headache with making a standard allocator. What behaviour should be expected from the assigment operator? When would it be called? Why is it there at all, when you can't change allocators in containers? To give a little more depth, I have a class like this: class HeapAllocator { // All requirements of the allocator interface are met along with:
6
1511
by: Ares Lagae | last post by:
Hello, I am trying to create a container the stl way, and I have a couple of questions. The code of the container in question can be found at http://www.cs.kuleuven.ac.be/~ares/tmp/array_2_hpp.html It is a 2d array that dynamically allocates its storage. It cannot be resized. It offers element access methods for both sequential access and 2d element access.
15
2063
by: natespamacct | last post by:
Hi All, I'm not sure if I'm dealing with a C++ question or a compiler question, so please forgive me if I'm asking in the wrong spot. If so, maybe someone can direct me to more appropriate spot. In migrating from gcc 3.2.3 to gcc 3.4.3 the following situation comes up. I have the following:
1
1365
by: ManicQin | last post by:
Heya everyone! A Q for U... I need to build an allocator for my objects, but! the trick is that: * Allocator would manage his own MemAlloc And the MemFree (like dhu) * One class could use a few types of allocators (meaning allocator is not a static member of the class). * I want the minimal overhead on a programmer, meaning that once he attached an allocator to an object he wont need to remember what allocator he attached (fire and...
3
2054
by: yasmin | last post by:
I am dealing with internal memory fragmentation issues in my program (C++ program on freeBSD). It involves a large number of fixed-size structures. For example for my records which are typically fixed at 100 bytes, the default allocator allocates 128 bytes (closest power of two) wasting 28 bytes per records and this adds up to a significant amount over several thousand records. Before jumping in and writing my own custom allocator which...
7
1889
by: DJ Dharme | last post by:
Hi, I really like to use stl as much as possible in my code. But I found it really hard to understand by looking into there source code. I have no idea about what iterator traits, heaps and allocators are. So I started to write my own container class to learn templates. I thought about a sorted vector class which have a additional two methods sort and insert sorted. The usage of this class is like this. 1. We can reserve some space and...
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.