This is very similar to this question on how to add class to select2 element, however the answers there appear to target earlier versions of the framework which has undergone so
Here is the short answer if you want to add class to all elements.
$.fn.select2.defaults.set('containerCssClass', 'wrap');